Skip to content

Commit

Permalink
Fix warning in login controller when checking non-existent login
Browse files Browse the repository at this point in the history
  • Loading branch information
faf committed Jun 23, 2022
1 parent ca09063 commit 58ee240
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function submitFormAction(Request $request)

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");
Expand Down

0 comments on commit 58ee240

Please sign in to comment.