* adjust for search.
This commit is contained in:
@@ -266,7 +266,7 @@ class searchModel extends model
|
||||
|
||||
if($hasUser)
|
||||
{
|
||||
$users = $this->loadModel('user')->getPairs('realname|noclosed', $appendUsers);
|
||||
$users = $this->loadModel('user')->getPairs('realname|noclosed', $appendUsers, $this->config->maxCount);
|
||||
$users['$@me'] = $this->lang->search->me;
|
||||
}
|
||||
if($hasProduct) $products = array('' => '') + $this->loadModel('product')->getPairs('', $this->session->project);
|
||||
|
||||
@@ -1253,6 +1253,7 @@ 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;
|
||||
|
||||
Reference in New Issue
Block a user