* Fix search is null bug.

This commit is contained in:
wangyuting
2023-08-11 10:32:25 +08:00
parent f7cdc29206
commit 8d7f5f5d66
+1 -2
View File
@@ -1390,11 +1390,10 @@ class user extends control
$limit = $this->get->limit;
$index = 0;
$newUsers = array();
//if(empty($search)) return array();
foreach($users as $account => $realname)
{
if($index >= $limit) break;
if(stripos($account, $search) === false and stripos($realname, $search) === false) continue;
if($search && stripos($account, $search) === false and stripos($realname, $search) === false) continue;
$index ++;
$newUsers[$account] = $realname;
}