From e61cb71c17e16342af556bacb7c8d98935f71752 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 16 Jul 2019 14:25:03 +0200 Subject: [PATCH] Use unique values for combined AND group membership filters --- .../library/Monitoring/Backend/Ido/Query/IdoQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php index 723227a4a..7a39f48d1 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php @@ -560,7 +560,7 @@ abstract class IdoQuery extends DbQuery if (count($expr) === 1 && strpos($expr[0], '&') !== false) { // Our current filter implementation does not specify & as a control character so the count of the // expression array is always one in this case - $expr = explode('&', $expr[0]); + $expr = array_unique(explode('&', $expr[0])); $subQueryFilter->setExpression($expr); $and = true; } else {