diff --git a/phpmyfaq/index.php b/phpmyfaq/index.php index cb399764be..4ee927983d 100755 --- a/phpmyfaq/index.php +++ b/phpmyfaq/index.php @@ -169,7 +169,7 @@ } // Login via local DB or LDAP or SSO -if ($faqusername !== '' && ($faqpassword !== '' || $faqConfig->get('security.ssoSupport'))) { +if (!is_null($faqusername) && (!is_null($faqpassword) || $faqConfig->get('security.ssoSupport'))) { $userAuth = new UserAuthentication($faqConfig, $user); $userAuth->setRememberMe($rememberMe ?? false); try {