Fix wrong return value breaks doc-module search

refs #4856
This commit is contained in:
moreamazingnick 2022-07-03 23:48:05 +02:00 committed by Johannes Meyer
parent f0f2835708
commit f84057fd83
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class DocSearchIterator extends RecursiveFilterIterator
} }
if (! empty($matches)) { if (! empty($matches)) {
$this->matches = $matches; $this->matches = $matches;
return $this; return true;
} }
if ($section->hasChildren()) { if ($section->hasChildren()) {
$this->matches = null; $this->matches = null;