Skip to content

Commit

Permalink
Error class was not able to remove errors - thanks scripple for repor…
Browse files Browse the repository at this point in the history
…ting

Signed-off-by: emanuele <emanuele45@gmail.com>
  • Loading branch information
emanuele45 committed Mar 3, 2014
1 parent 69ddb70 commit fd4badb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/Errors.class.php
Expand Up @@ -124,7 +124,7 @@ public function removeError($error)
$error = $error[0];

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

0 comments on commit fd4badb

Please sign in to comment.