diff --git a/module/todo/model.php b/module/todo/model.php index e3f1dfc39a..2c62335ee1 100755 --- a/module/todo/model.php +++ b/module/todo/model.php @@ -359,9 +359,10 @@ class todoModel extends model foreach($todoList as $todoID => $todo) { - $todo->config = json_decode($todo->config); if(!isset($validUsers[$todo->account])) continue; + $todo->config = json_decode($todo->config); + $begin = $todo->config->begin; $end = $todo->config->end; $beforeDays = (int)$todo->config->beforeDays;