}
// 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 {