From 456811de8d050f0024ebcd01977cd5a12903b0d9 Mon Sep 17 00:00:00 2001 From: dingguodong Date: Wed, 16 Aug 2023 14:07:31 +0800 Subject: [PATCH] * Fix type error. --- 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 556b1d8870..2ca3a7d8cb 100755 --- a/module/task/control.php +++ b/module/task/control.php @@ -60,7 +60,7 @@ class task extends control /* Submit the data process after create the task form. */ if(!empty($_POST)) { - $taskData = $this->taskZen->buildTaskForCreate($this->post->execution ? $this->post->execution : $executionID); + $taskData = $this->taskZen->buildTaskForCreate($this->post->execution ? (int)$this->post->execution : $executionID); if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError())); /* Check whether a task with the same name is created within the specified time. */