diff --git a/application/forms/Authentication/LoginForm.php b/application/forms/Authentication/LoginForm.php index bb01f8a04..6958def01 100644 --- a/application/forms/Authentication/LoginForm.php +++ b/application/forms/Authentication/LoginForm.php @@ -71,7 +71,7 @@ class LoginForm extends Form if ($this->created) { $redirect = $this->getElement('redirect')->getValue(); } - if (empty($redirect) || strpos($redirect, 'authentication/logout') !== 0) { + if (empty($redirect) || strpos($redirect, 'authentication/logout') === 0) { $redirect = static::REDIRECT_URL; } return Url::fromPath($redirect);