* fix the error.

This commit is contained in:
wangchunsheng
2009-11-05 09:47:09 +00:00
parent 1eb584922c
commit fd33535386
+2 -2
View File
@@ -37,7 +37,7 @@ class my extends control
}
/* 用户的todo列表。*/
public function todo($date = 'today')
public function todo($date = 'today', $account = '', $status = 'all')
{
/* 加载todo model。*/
$this->loadModel('todo');
@@ -46,7 +46,7 @@ class my extends control
$header['title'] = $this->lang->my->common . $this->lang->colon . $this->lang->my->todo;
$position[] = $this->lang->my->todo;
$todos = $this->todo->getList($date);
$todos = $this->todo->getList($date, $account, $status);
if((int)$date == 0) $date = $this->todo->today();
/* 赋值。*/