From 7999f71d152e6c7ced958aae6862b8cc00ecd60c Mon Sep 17 00:00:00 2001 From: dingguodong Date: Wed, 3 May 2023 16:18:20 +0800 Subject: [PATCH] * The control::locate return never type(a return-only type). --- module/todo/control.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/todo/control.php b/module/todo/control.php index 92c974d256..9f7ee33064 100755 --- a/module/todo/control.php +++ b/module/todo/control.php @@ -321,7 +321,7 @@ class todo extends control /* Fix bug #936. */ if($account != $todo->account and $account != $todo->assignedTo and !common::hasPriv('my', 'team')) { - return $this->locate($this->createLink('user', 'deny', "module=my&method=team")); + $this->locate($this->createLink('user', 'deny', "module=my&method=team")); } $projects = $this->todoZen->getProjectPairsByModel((string)$todo->type); @@ -460,15 +460,15 @@ class todo extends control * @access public * @return int */ - public function import2Today(string $todoID = ''): int + public function import2Today(string $todoID = ''): void { $formData = form::data($this->config->todo->editDate->form); $todoIDList = !empty($formData->rawdata->todoIDList) ? $formData->rawdata->todoIDList : array($todoID); $date = !empty($formData->rawdata->date) ? $formData->rawdata->date : date::today(); - if(!$todoIDList) return $this->locate((string)$this->session->todoList); + if(!$todoIDList) $this->locate((string)$this->session->todoList); $this->todo->editDate((array)$todoIDList, (string)$date); - return $this->locate((string)$this->session->todoList); + $this->locate((string)$this->session->todoList); } /**