Skip to content

Commit

Permalink
Fixes error removing errors from Error_COntext class - thank scripple…
Browse files Browse the repository at this point in the history
… for reporting

Signed-off-by: emanuele <emanuele45@gmail.com>
  • Loading branch information
emanuele45 committed Mar 4, 2014
1 parent e35c8fb commit 63a460e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sources/Errors.class.php
Expand Up @@ -124,8 +124,12 @@ public function removeError($error)
$error = $error[0];

foreach ($this->_errors as $severity => $errors)
{
if (array_key_exists($error, $errors))
unset($this->_errors[$severity][$error]);
if (empty($this->_errors[$severity]))
unset($this->_errors[$severity]);
}
}
}

Expand Down

0 comments on commit 63a460e

Please sign in to comment.