From 569fec4610edc398f6be3ff94f29e5bce82f1d69 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 25 Mar 2017 22:07:07 +0100 Subject: [PATCH] Double check on NULL. [skip ci] --- app/Support/Search/Search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 : ''; } }