From c34fc416a28e62ae87fbcb25ae015b8b1f114df9 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 18 Feb 2021 19:32:45 +0000 Subject: php8 warnings --- boot.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'boot.php') 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; -- cgit v1.2.3