mirror of
https://github.com/Mibew/mibew.git
synced 2024-11-15 00:24:12 +03:00
Fix warning in login controller when checking non-existent login
This commit is contained in:
parent
ca090638da
commit
58ee240c80
@ -106,7 +106,7 @@ class LoginController extends AbstractController
|
|||||||
|
|
||||||
return $this->redirect($target);
|
return $this->redirect($target);
|
||||||
} else {
|
} else {
|
||||||
if (operator_is_disabled($operator)) {
|
if ($operator && operator_is_disabled($operator)) {
|
||||||
$errors[] = getlocal('Your account is temporarily blocked. Please contact system administrator.');
|
$errors[] = getlocal('Your account is temporarily blocked. Please contact system administrator.');
|
||||||
} else {
|
} else {
|
||||||
$errors[] = getlocal("Entered login/password is incorrect");
|
$errors[] = getlocal("Entered login/password is incorrect");
|
||||||
|
Loading…
Reference in New Issue
Block a user