From cd62501f36d25a2aeb89d47b3fc729bd440008dd Mon Sep 17 00:00:00 2001 From: liumengyi Date: Mon, 29 Nov 2021 10:49:56 +0800 Subject: [PATCH] * minor refactor. --- module/my/control.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/my/control.php b/module/my/control.php index 35e7b20172..949d479cca 100644 --- a/module/my/control.php +++ b/module/my/control.php @@ -149,7 +149,10 @@ class my extends control $todos = $this->loadModel('todo')->getList($type, $account, $status, 0, $pager, $sort); $tasks = $this->loadModel('task')->getUserSuspendedTasks($account); - foreach($todos as $key => $todo) if($todo->type == 'task' and isset($tasks[$todo->idvalue])) unset($todos[$key]); + foreach($todos as $key => $todo) + { + if($todo->type == 'task' and isset($tasks[$todo->idvalue])) unset($todos[$key]); + } $pager->recTotal = count($todos);