* Fix bug.

This commit is contained in:
Yagami
2021-04-09 14:52:03 +08:00
parent 142d614086
commit 62bc93ee58
3 changed files with 29 additions and 29 deletions
+1 -1
View File
@@ -859,7 +859,7 @@ class taskModel extends model
$teams = array();
if($this->post->multiple)
{
if(strpos(',done,closed,cancel,', ",{$task->status},") === false && !in_array($this->post->assignedTo, $this->post->team))
if(strpos(',done,closed,cancel,', ",{$task->status},") === false && $this->post->assignedTo && !in_array($this->post->assignedTo, $this->post->team))
{
dao::$errors[] = $this->lang->task->error->assignedTo;
return false;