X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Ffilter%2Fclass_FilterChain.php;h=1c2433313f1b99547cef8c701c1d9d92d79e4c6e;hb=6fd01888b51f210394c4b7bb5e0ac2a28efb0c99;hp=632e6745c489a5bc2548a981fee2e74c3fcbc5b9;hpb=1ee35e6d96c456b8e3499bd683f1647aa28bd501;p=core.git diff --git a/inc/classes/main/filter/class_FilterChain.php b/inc/classes/main/filter/class_FilterChain.php index 632e6745..1c243331 100644 --- a/inc/classes/main/filter/class_FilterChain.php +++ b/inc/classes/main/filter/class_FilterChain.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2014 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.shipsimu.org * @@ -56,12 +56,22 @@ class FilterChain extends BaseFrameworkSystem implements Registerable { } /** - * 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; } /**