diff --git a/modules/doc/library/Doc/Search/DocSearchIterator.php b/modules/doc/library/Doc/Search/DocSearchIterator.php index e46de3624..fd2c90300 100644 --- a/modules/doc/library/Doc/Search/DocSearchIterator.php +++ b/modules/doc/library/Doc/Search/DocSearchIterator.php @@ -61,7 +61,7 @@ class DocSearchIterator extends RecursiveFilterIterator } if (! empty($matches)) { $this->matches = $matches; - return $this; + return true; } if ($section->hasChildren()) { $this->matches = null;