Commit 0e4d479c authored by hujun's avatar hujun

trim

parent bacb4f52
......@@ -379,7 +379,7 @@ class Broker extends Basic
$where['a.status'] = $params['status'];
}
if (!empty($params['search'])) {
if (!empty(trim($params['search']))) {
$where[] = [ 'EXP', "a.name like '%{$params['search']}%' OR a.phone like '%{$params['search']}%'" ];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment