diff --git a/src/FilterRule/FromTo.php b/src/FilterRule/FromTo.php index b2e5adb..7492069 100644 --- a/src/FilterRule/FromTo.php +++ b/src/FilterRule/FromTo.php @@ -15,6 +15,7 @@ * @author Stefan Heimes * @author Richard Henkenjohann * @author Sven Baumann + * @author Ingolf Steinhardt * @copyright 2012-2019 The MetaModels team. * @license https://github.com/MetaModels/filter_fromto/blob/master/LICENSE LGPL-3.0-or-later * @filesource @@ -115,9 +116,9 @@ public function isLowerInclusive() } /** - * Mark the lower bound of the range to search. + * Mark the upper bound of the range to search. * - * @param mixed $value The value to use for the lower bound. + * @param mixed $value The value to use for the upper bound. * * @param bool $inclusive Flag if the value shall also be included in the result. * @@ -190,7 +191,7 @@ protected function evaluateLowerBound() } /** - * Evaluate the lower bounding of the range. + * Evaluate the upper bounding of the range. * * @return null|\string[] */ diff --git a/src/FilterSetting/AbstractFromTo.php b/src/FilterSetting/AbstractFromTo.php index 76a5209..631f5aa 100644 --- a/src/FilterSetting/AbstractFromTo.php +++ b/src/FilterSetting/AbstractFromTo.php @@ -15,6 +15,7 @@ * @author Stefan Heimes * @author Richard Henkenjohann * @author Sven Baumann + * @author Ingolf Steinhardt * @copyright 2012-2019 The MetaModels team. * @license https://github.com/MetaModels/filter_fromto/blob/master/LICENSE LGPL-3.0-or-later * @filesource @@ -332,6 +333,8 @@ public function prepareRules(IFilter $objFilter, $arrFilterUrl) $objFilter->addFilterRule( $this->createFromToRule($attribute, $this->formatEmpty($value[0]), $this->formatEmpty($value[1])) ); + + return; } // Add rule to the filter.