}
/**
- * Getter for filters array
+ * "Getter" for filters array
*
* @return $filters The filters array holding all filter instances
*/
protected function getFilters () {
- return $this->getGenericArrayKey('filters', 'generic', 'dummy');
+ // Default is nothing found
+ $filters = array();
+
+ // Are some filters set?
+ if ($this->isValidGenericArrayKey('filters', 'generic', 'dummy')) {
+ // Then get them
+ $filters = $this->getGenericArrayKey('filters', 'generic', 'dummy');
+ } // END - if
+
+ // Return it
+ return $filters;
}
/**
}
// 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 {