Fix warning in login controller when checking non-existent login

This commit is contained in:
Fedor A. Fetisov 2022-06-24 01:43:22 +03:00 committed by Fedor A. Fetisov
parent ca090638da
commit 58ee240c80

View File

@ -106,7 +106,7 @@ class LoginController extends AbstractController
return $this->redirect($target);
} else {
if (operator_is_disabled($operator)) {
if ($operator && operator_is_disabled($operator)) {
$errors[] = getlocal('Your account is temporarily blocked. Please contact system administrator.');
} else {
$errors[] = getlocal("Entered login/password is incorrect");