From 2b2671e7abf41c8cff1eadea7f651df53d9fe5c3 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 16 Dec 2019 13:50:56 +0800 Subject: [PATCH] * finish task #6676. --- module/todo/model.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/todo/model.php b/module/todo/model.php index 4193291371..b7e461e19b 100644 --- a/module/todo/model.php +++ b/module/todo/model.php @@ -467,8 +467,11 @@ class todoModel extends model $today = helper::today(); $now = helper::now(); $lastCycleList = $this->dao->select('*')->from(TABLE_TODO)->where('type')->eq('cycle')->andWhere('idvalue')->in(array_keys($todoList))->orderBy('date_asc')->fetchAll('idvalue'); + $activedUsers = $this->dao->select('account')->from(TABLE_USER)->where('deleted')->eq(0)->fetchPairs('account', 'account'); foreach($todoList as $todoID => $todo) { + if(!isset($activedUsers[$todo->account])) continue; + $todo->config = json_decode($todo->config); $begin = $todo->config->begin; $end = $todo->config->end;