From 7afba4a3fad2d6fae6e79c2f68cb3137389c3440 Mon Sep 17 00:00:00 2001 From: Xenomporio <> Date: Sat, 2 Jul 2022 14:43:24 +0200 Subject: [PATCH] Bugfix supersearch --- classes/Widgets/SuperSearch/Result/ResultCollection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Widgets/SuperSearch/Result/ResultCollection.php b/classes/Widgets/SuperSearch/Result/ResultCollection.php index a29a2b2e..7a6dffde 100644 --- a/classes/Widgets/SuperSearch/Result/ResultCollection.php +++ b/classes/Widgets/SuperSearch/Result/ResultCollection.php @@ -30,7 +30,7 @@ final class ResultCollection implements JsonSerializableAlias */ public function isEmpty() { - return count($this->groups) === 0; + return (empty($this->groups)?0:(count($this->groups) === 0)); } /**