From cb50ce5adab4e05b393049c5df5f22def418a7f6 Mon Sep 17 00:00:00 2001 From: liugang Date: Mon, 25 Dec 2023 14:58:41 +0800 Subject: [PATCH] + userTao: return empty array if the passed parameter is empty. --- module/user/tao.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/user/tao.php b/module/user/tao.php index 0ff2f845cd..c1d1caf77c 100644 --- a/module/user/tao.php +++ b/module/user/tao.php @@ -129,6 +129,8 @@ class userTao extends userModel */ public function fetchExecutionTaskCount(string $account, array $executionIdList): array { + if(!$executionIdList) return array(); + return $this->dao->select('execution, COUNT(1) AS count') ->from(TABLE_TASK) ->where('parent')->lt(1)