* Fix code error.

This commit is contained in:
tianshujie
2023-05-06 14:02:35 +08:00
parent 636b664c5e
commit 1afd59b507
+1 -1
View File
@@ -648,9 +648,9 @@ class taskZen extends task
if(dao::isError()) return array('result' => 'fail', 'message' => dao::getError());
/* Return task id when call the API. */
$taskID = $task->id;
if($this->viewType == 'json' or (defined('RUN_MODE') && RUN_MODE == 'api')) return array('result' => 'success', 'message' => $this->lang->saveSuccess, 'id' => $taskID);
$taskID = $task->id;
$response['result'] = 'success';
$response['message'] = $this->lang->saveSuccess;