aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-02-18 19:32:45 +0000
committerMario <mario@mariovavti.com>2021-02-18 19:32:45 +0000
commitc34fc416a28e62ae87fbcb25ae015b8b1f114df9 (patch)
treedf1591c3e54626a6e0fb21f4ffa95a92c18f1b3b /boot.php
parent7794ee5a8840f530093e0df41042dc082df978ae (diff)
downloadvolse-hubzilla-c34fc416a28e62ae87fbcb25ae015b8b1f114df9.tar.gz
volse-hubzilla-c34fc416a28e62ae87fbcb25ae015b8b1f114df9.tar.bz2
volse-hubzilla-c34fc416a28e62ae87fbcb25ae015b8b1f114df9.zip
php8 warnings
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/boot.php b/boot.php
index 1bd829997..737148948 100644
--- a/boot.php
+++ b/boot.php
@@ -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;