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