It may rarely happen that no filters are registered. It is strange but it may
[core.git] / inc / classes / main / response / class_BaseResponse.php
index 7fdbebb484a2d93f1066a32c0dfc03816625e981..bd7524890de030d6f633c3fd2de06423fd691750 100644 (file)
@@ -181,7 +181,7 @@ class BaseResponse extends BaseFrameworkSystem {
                }
 
                // Are there some error messages?
-               if ($this->countGenericArrayElements('fatal_messages', 'generic', 'message') == 0) {
+               if ((!$this->isValidGenericArrayKey('fatal_messages', 'generic', 'message')) || ($this->countGenericArrayElements('fatal_messages', 'generic', 'message') == 0)) {
                        // Flush the output to the world
                        $this->getWebOutputInstance()->output($this->responseBody);
                } else {