Merge pull request #7382 from firefly-iii/fix-7377

Another fix for #7377
This commit is contained in:
James Cole
2023-04-16 06:59:41 +02:00
committed by GitHub

View File

@@ -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();
}