From a9ed897ea6182265ca75223a00201bf0f6805de4 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Wed, 8 Oct 2025 18:35:38 +0200 Subject: [PATCH] Filter/Fixup * fix evaluating imbalanced criteria --- includes/components/filter.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/components/filter.class.php b/includes/components/filter.class.php index 8ea36189..a84e6ca3 100644 --- a/includes/components/filter.class.php +++ b/includes/components/filter.class.php @@ -335,7 +335,7 @@ abstract class Filter if (count($_cr) != count($_crv) || count($_cr) != count($_crs) || count($_cr) > 5 || count($_crs) > 5 /*|| count($_crv) > 5*/) { // use min provided criterion as basis; 5 criteria at most - $min = max(5, min(count($_cr), count($_crv), count($_crs))); + $min = min(5, count($_cr), count($_crv), count($_crs)); if (count($_cr) > $min) array_splice($_cr, $min);