* remove the default value again.

This commit is contained in:
wangchunsheng
2010-01-20 01:17:53 +00:00
parent 6c20ffbe30
commit 8969fe5f75
2 changed files with 2 additions and 2 deletions

View File

@@ -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();
}

View File

@@ -44,7 +44,7 @@ class userModel extends model
}
/* <20><><EFBFBD><EFBFBD>account=>realname<6D><65><EFBFBD>б<EFBFBD><D0B1><EFBFBD>params: noletter|noempty|noclosed<65><64>*/
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();