From c433d08deda6ea438928b1ce25f72b6b10149467 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Wed, 13 Nov 2024 00:46:45 +0000 Subject: [PATCH] * [task#132441,done,0.2h] fix bug. --- module/task/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/task/control.php b/module/task/control.php index 5d2391b073..1e1c9a5a9e 100755 --- a/module/task/control.php +++ b/module/task/control.php @@ -141,7 +141,7 @@ class task extends control if(!empty($_POST)) { - $parent = $taskID > 0 ? $this->task->fetchById($taskID) : new stdclass(); + $parent = $taskID > 0 ? $this->task->fetchById($taskID) : null; /* Process the request data for the batch create tasks. */ $taskData = $this->taskZen->buildTasksForBatchCreate($execution, $taskID, $output); if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));