diff --git a/trunk/module/index/control.php b/trunk/module/index/control.php index c9cbae950d..537571569e 100644 --- a/trunk/module/index/control.php +++ b/trunk/module/index/control.php @@ -51,7 +51,7 @@ class index extends control $this->view->burns = $burns; $this->view->counts = count($projects); $this->view->actions = $this->dao->select('*')->from(TABLE_ACTION)->orderBy('id desc')->limit(30)->fetchAll(); - $this->view->users = $this->loadModel('user')->getPairs($this->app->company->id, 'noletter'); + $this->view->users = $this->loadModel('user')->getPairs(); $this->display(); } diff --git a/trunk/module/user/model.php b/trunk/module/user/model.php index 67c1961b7e..56d0e3416c 100644 --- a/trunk/module/user/model.php +++ b/trunk/module/user/model.php @@ -44,7 +44,7 @@ class userModel extends model } /* 获得account=>realname的列表。params: noletter|noempty|noclosed。*/ - public function getPairs($params = 'noletter', $companyID = 0) + 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();