diff options
author | Mario <mario@mariovavti.com> | 2022-09-07 12:50:46 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-09-07 12:50:46 +0000 |
commit | fcfb9e975836c4abbbfd339d46bf8ea937747e57 (patch) | |
tree | bbe6a8f19831eba6f9488c8e26687362870e0021 /include/auth.php | |
parent | 9beee689ce5537d0b64f20ccfe461eeb7c41ffa8 (diff) | |
download | volse-hubzilla-fcfb9e975836c4abbbfd339d46bf8ea937747e57.tar.gz volse-hubzilla-fcfb9e975836c4abbbfd339d46bf8ea937747e57.tar.bz2 volse-hubzilla-fcfb9e975836c4abbbfd339d46bf8ea937747e57.zip |
fix random php warnings
Diffstat (limited to 'include/auth.php')
-rw-r--r-- | include/auth.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/auth.php b/include/auth.php index 07b8e2971..8a83f16fe 100644 --- a/include/auth.php +++ b/include/auth.php @@ -189,7 +189,7 @@ if((isset($_SESSION)) && (x($_SESSION, 'authenticated')) && call_hooks('logging_out', $args); - if($_SESSION['delegate'] && $_SESSION['delegate_push']) { + if(isset($_SESSION['delegate']) && isset($_SESSION['delegate_push'])) { $_SESSION = $_SESSION['delegate_push']; info( t('Delegation session ended.') . EOL); } @@ -337,7 +337,7 @@ else { // (i.e. expire when the browser is closed), even when there's a time expiration // on the cookie - $remember = $_POST['main_login_remember'] ?? $_POST['modal_login_remember']; + $remember = $_POST['main_login_remember'] ?? $_POST['modal_login_remember'] ?? false; if($remember) { $_SESSION['remember_me'] = 1; |