Skip to content

Commit

Permalink
More fixes for error handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Oct 30, 2013
1 parent af8caef commit 2ad5afe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions framework/Core/lib/Horde/ErrorHandler.php
Expand Up @@ -28,7 +28,7 @@ static public function fatal($error)
switch (get_class($error)) {
case 'Horde_Exception_AuthenticationFailure':
if ($registry->isAuthenticated(array('app' => $error->application, 'notransparent' => true)) &&
$registry->clearAuthApp($error->application)) {
!$registry->clearAuthApp($error->application)) {
break;
}

Expand All @@ -50,6 +50,7 @@ static public function fatal($error)
switch ($error->getCode()) {
case Horde_Auth::REASON_MESSAGE:
$params['msg'] = $error->getMessage();
$params['reason'] = $error->getCode();
break;
}

Expand All @@ -59,7 +60,7 @@ static public function fatal($error)
* issues on the login page since we would otherwise need
* to do session token checking (which might not be
* available, so logout won't happen, etc...) */
if (isset($params['app'])) {
if (array_key_exists($params, 'app')) {
$registry->clearAuth();
}

Expand Down

0 comments on commit 2ad5afe

Please sign in to comment.