* Adjust for php8.1 syntax.

This commit is contained in:
wangyidong
2023-08-25 13:34:10 +08:00
parent 2c4fac09b8
commit 1245276613
4 changed files with 16 additions and 13 deletions
+6 -6
View File
@@ -2409,12 +2409,12 @@ class taskModel extends model
->andWhere('t1.vision')->eq($this->config->vision)
->fetch();
if(!$task) return false;
$task->openedDate = substr($task->openedDate, 0, 19);
$task->finishedDate = substr($task->finishedDate, 0, 19);
$task->canceledDate = substr($task->canceledDate, 0, 19);
$task->closedDate = substr($task->closedDate, 0, 19);
$task->lastEditedDate = substr($task->lastEditedDate, 0, 19);
$task->realStarted = substr($task->realStarted, 0, 19);
if($task->openedDate) $task->openedDate = substr($task->openedDate, 0, 19);
if($task->finishedDate) $task->finishedDate = substr($task->finishedDate, 0, 19);
if($task->canceledDate) $task->canceledDate = substr($task->canceledDate, 0, 19);
if($task->closedDate) $task->closedDate = substr($task->closedDate, 0, 19);
if($task->lastEditedDate) $task->lastEditedDate = substr($task->lastEditedDate, 0, 19);
if($task->realStarted) $task->realStarted = substr($task->realStarted, 0, 19);
$children = $this->dao->select('*')->from(TABLE_TASK)->where('parent')->eq($taskID)->andWhere('deleted')->eq(0)->fetchAll('id');
$task->children = $children;