diff --git a/src/app/search/controllers/SearchController.php b/src/app/search/controllers/SearchController.php
index 3f92ab67d3527b0a5bb71f45352a99ca539722f6..dbcb1c03b42701d81511bdd0164b35516999dd0a 100755
--- a/src/app/search/controllers/SearchController.php
+++ b/src/app/search/controllers/SearchController.php
@@ -134,7 +134,7 @@ class SearchController
             $canPurge = true;
         }
 
-        $where = [implode(' OR ', $where)];
+        $where = !empty($where) ? [implode(' OR ', $where)] : [];        
 
         $documents = DocumentModel::get([
             'select'      => $select,