Fix wrong return value breaks doc-module search

refs #4856

(cherry picked from commit f84057fd8384bf0ea7f820686615ed5a388e00f0)
This commit is contained in:
moreamazingnick 2022-07-03 23:48:05 +02:00 committed by Johannes Meyer
parent 81056b97af
commit 02e3670ced

View File

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