* Fix bug for search when whereCondition is empty.

This commit is contained in:
tanghucheng
2023-06-09 10:17:06 +08:00
parent 3db8bf97ae
commit 834648941e
+2
View File
@@ -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';
}