diff --git a/trunk/module/user/model.php b/trunk/module/user/model.php index ff6e9217de..7c6a4c5c0b 100644 --- a/trunk/module/user/model.php +++ b/trunk/module/user/model.php @@ -47,7 +47,7 @@ class userModel extends model public function getPairs($params = '', $companyID = 0) { if($companyID == 0) $companyID = $this->app->company->id; - $users = $this->dao->select('account, realname')->from(TABLE_USER)->where('company')->eq((int)$companyID)->orderBy('account')->fetchPairs(); + $users = $this->dao->select('account, realname')->from(TABLE_USER)->where('company')->eq((int)$companyID)->andWhere('status')->eq('active')->orderBy('account')->fetchPairs(); foreach($users as $account => $realName) { $firstLetter = ucfirst(substr($account, 0, 1)) . ':';