diff --git a/app/Support/Search/Search.php b/app/Support/Search/Search.php index 21f6f8bf23..8c6d9c82ae 100644 --- a/app/Support/Search/Search.php +++ b/app/Support/Search/Search.php @@ -62,7 +62,7 @@ class Search implements SearchInterface { $string = join(' ', $this->words); if (strlen($string) === 0) { - return $this->originalQuery; + return is_string($this->originalQuery) ? $this->originalQuery : ''; } }