mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 01:24:27 +02:00
Replace deprecated defaults() calls in include/api and boot
This commit is contained in:
parent
bfcae2f79a
commit
f498068b0f
2 changed files with 133 additions and 157 deletions
2
boot.php
2
boot.php
|
@ -527,7 +527,7 @@ function is_site_admin()
|
|||
|
||||
$adminlist = explode(',', str_replace(' ', '', $admin_email));
|
||||
|
||||
return local_user() && $admin_email && in_array(defaults($a->user, 'email', ''), $adminlist);
|
||||
return local_user() && $admin_email && in_array($a->user['email'] ?? '', $adminlist);
|
||||
}
|
||||
|
||||
function explode_querystring($query)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue