diff options
author | Mario <mario@mariovavti.com> | 2021-02-18 19:32:45 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-02-18 19:32:45 +0000 |
commit | c34fc416a28e62ae87fbcb25ae015b8b1f114df9 (patch) | |
tree | df1591c3e54626a6e0fb21f4ffa95a92c18f1b3b /boot.php | |
parent | 7794ee5a8840f530093e0df41042dc082df978ae (diff) | |
download | volse-hubzilla-c34fc416a28e62ae87fbcb25ae015b8b1f114df9.tar.gz volse-hubzilla-c34fc416a28e62ae87fbcb25ae015b8b1f114df9.tar.bz2 volse-hubzilla-c34fc416a28e62ae87fbcb25ae015b8b1f114df9.zip |
php8 warnings
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -2065,12 +2065,10 @@ function is_site_admin() { if(! session_id()) return false; - if($_SESSION['delegate']) + if(isset($_SESSION['delegate'])) return false; - if((intval($_SESSION['authenticated'])) - && (is_array(App::$account)) - && (App::$account['account_roles'] & ACCOUNT_ROLE_ADMIN)) + if(isset($_SESSION['authenticated']) && is_array(App::$account) && (App::$account['account_roles'] & ACCOUNT_ROLE_ADMIN)) return true; return false; |