diff options
author | Mario Vavti <mario@mariovavti.com> | 2022-10-23 14:02:19 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2022-10-23 14:02:19 +0200 |
commit | 8879776d6436ed5257648a1873ddaa9486b25070 (patch) | |
tree | 996c192607ed8b1a4b03bd620deb4b1f3b348a48 /Zotlabs/Module/Settings.php | |
parent | 5edd13c6bb89c7434d8437f8cc74c038371fdbf8 (diff) | |
download | volse-hubzilla-8879776d6436ed5257648a1873ddaa9486b25070.tar.gz volse-hubzilla-8879776d6436ed5257648a1873ddaa9486b25070.tar.bz2 volse-hubzilla-8879776d6436ed5257648a1873ddaa9486b25070.zip |
fix php warnings
Diffstat (limited to 'Zotlabs/Module/Settings.php')
-rw-r--r-- | Zotlabs/Module/Settings.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Zotlabs/Module/Settings.php b/Zotlabs/Module/Settings.php index 624cbb0c1..94f67a349 100644 --- a/Zotlabs/Module/Settings.php +++ b/Zotlabs/Module/Settings.php @@ -11,8 +11,9 @@ class Settings extends \Zotlabs\Web\Controller { if(! local_channel()) return; - if($_SESSION['delegate']) + if (isset($_SESSION['delegate']) && $_SESSION['delegate']) { return; + } \App::$profile_uid = local_channel(); @@ -33,7 +34,7 @@ class Settings extends \Zotlabs\Web\Controller { if(! local_channel()) return; - if($_SESSION['delegate']) + if(isset($_SESSION['delegate']) && $_SESSION['delegate']) return; // logger('mod_settings: ' . print_r($_REQUEST,true)); @@ -54,7 +55,7 @@ class Settings extends \Zotlabs\Web\Controller { nav_set_selected('Settings'); - if((! local_channel()) || ($_SESSION['delegate'])) { + if((! local_channel()) || (isset($_SESSION['delegate']) && $_SESSION['delegate'])) { notice( t('Permission denied.') . EOL ); return login(); } |