* if no task, return an empty array.

This commit is contained in:
wangchunsheng
2010-03-26 13:48:28 +00:00
parent a88fd7a042
commit 4eba528494

View File

@@ -158,7 +158,7 @@ class taskModel extends model
->onCaseOf($status != 'all')->andWhere('t1.status')->in($status)->endCase()
->fetchAll();
if($tasks) return $this->computeDelays($tasks);
return false;
return array();
}
/* 获得用户的任务id=>name列表。*/