Skip to content

Commit 2c5419f

Browse files
committed
Fix error fit value empty
1 parent 39023f3 commit 2c5419f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/FilterSetting/AbstractRange.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of MetaModels/filter_range.
55
*
6-
* (c) 2012-2024 The MetaModels team.
6+
* (c) 2012-2025 The MetaModels team.
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.
@@ -15,7 +15,7 @@
1515
* @author Stefan Heimes <stefan_heimes@hotmail.com>
1616
* @author Richard Henkenjohann <richardhenkenjohann@googlemail.com>
1717
* @author Ingolf Steinhardt <info@e-spin.de>
18-
* @copyright 2012-2024 The MetaModels team.
18+
* @copyright 2012-2025 The MetaModels team.
1919
* @license https://github.com/MetaModels/filter_range/blob/master/LICENSE LGPL-3.0-or-later
2020
* @filesource
2121
*/
@@ -364,7 +364,7 @@ public function prepareRules(IFilter $objFilter, $arrFilterUrl)
364364
$value = $this->getParameterValue($arrFilterUrl);
365365

366366
// No filter values, get out.
367-
if (!is_array($value)) {
367+
if (!\is_array($value) || [] === $value) {
368368
$objFilter->addFilterRule(new StaticIdList(null));
369369

370370
return;

0 commit comments

Comments
 (0)