* if no task, return an empty array.

This commit is contained in:
wangchunsheng
2010-03-26 13:48:28 +00:00
parent 637e0e09e5
commit ef8ffd3381
+1 -1
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列表。*/