Skip to content

Firefly III: a personal finances manager

Another fix for #7377

James Cole05e307136ccd
diff --git a/app/Support/Search/OperatorQuerySearch.php b/app/Support/Search/OperatorQuerySearch.php
index d6e81a60b2..659550186e 100644
--- a/app/Support/Search/OperatorQuerySearch.php
+++ b/app/Support/Search/OperatorQuerySearch.php
@@ -861,7 +861,7 @@ class OperatorQuerySearch implements SearchInterface
$this->collector->setTags(new Collection([$result]));
}
// no tags found means search must result in nothing.
- if (0 === $result->count()) {
+ if (null === $result) {
Log::info(sprintf('No valid tags in "%s"-operator, so search will not return ANY results.', $operator));
$this->collector->findNothing();
}