diff options
Diffstat (limited to 'ui/include/classes/core/ZBase.php')
-rw-r--r-- | ui/include/classes/core/ZBase.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/include/classes/core/ZBase.php b/ui/include/classes/core/ZBase.php index ab2065915fa..5872a4f7466 100644 --- a/ui/include/classes/core/ZBase.php +++ b/ui/include/classes/core/ZBase.php @@ -154,9 +154,8 @@ class ZBase { /** * Initializes the application. * - * @param string $mode Application initialization mode. + * @param string $mode Application initialization mode. * - * @throws DBException * @throws Exception */ public function run($mode) { @@ -454,7 +453,7 @@ class ZBase { protected function authenticateUser(): void { $session = new CEncryptedCookieSession(); - if (!CWebUser::checkAuthentication($session->extractSessionId())) { + if (!CWebUser::checkAuthentication($session->extractSessionId() ?: '')) { CWebUser::setDefault(); } |