* Fix bug#21037.

This commit is contained in:
xieqiyu
2022-03-23 14:57:59 +08:00
parent 0c79df3fb6
commit e52f5c78b7
2 changed files with 40 additions and 12 deletions
+1 -1
View File
@@ -1542,7 +1542,7 @@ class projectModel extends model
{
if(empty($account)) continue;
if((int)$days[$key] > $project->days)
if(!empty($project->days) and (int)$days[$key] > $project->days)
{
dao::$errors['message'][] = sprintf($this->lang->project->daysGreaterProject, $project->days);
return false;