diff --git a/module/search/model.php b/module/search/model.php index b5215b30ce..0431b8d236 100644 --- a/module/search/model.php +++ b/module/search/model.php @@ -718,6 +718,8 @@ class searchModel extends model if($this->config->db->driver == 'dm') { $whereCondition = preg_replace("/\b(AND|OR)\b/", "", $likeCondition, 1); + if(!$whereCondition) $whereCondition = '1=1'; + $scoreColumn = '*'; $orderBy = 'editedDate_desc'; }