diff --git a/sources/Errors.class.php b/sources/Errors.class.php index a0d4490c23..a700edae20 100644 --- a/sources/Errors.class.php +++ b/sources/Errors.class.php @@ -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]); } }