Another fix for #7377

This commit is contained in:
James Cole
2023-04-16 06:59:19 +02:00
parent d9dc394e7f
commit 05e307136c

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