* adjust the getBurn() method.

This commit is contained in:
wangchunsheng
2009-12-30 05:51:53 +00:00
parent b4e352dd98
commit e521cc7921

View File

@@ -244,7 +244,7 @@ class projectModel extends model
/* 取得burn表中最大的日期和project的结束时间。*/
end($sets);
$current = key($sets);
$end = $this->dao->select('end')->from(TABLE_PROJECT)->where('id')->eq((int)$projectID)->fetch('end');
$end = $project->end;
/* 根据当前日期和项目最后结束的日期,补足后续日期。*/
if($end != '0000-00-00' and helper::diffDate($end, $current) > 0)