This commit is contained in:
holan20180123
2021-04-06 09:39:47 +08:00
parent a0f8e233f4
commit 4e779d7927
+1 -1
View File
@@ -1358,7 +1358,7 @@ class taskModel extends model
if($this->post->left == 0)
{
if($task->consumed == 0)
if(isset($task->consumed) and $task->consumed == 0)
{
dao::$errors[] = sprintf($this->lang->error->notempty, $this->lang->task->consumed);
return false;