diff --git a/helper.php b/helper.php index a84e166..965dabe 100644 --- a/helper.php +++ b/helper.php @@ -149,6 +149,10 @@ public function loadTasks($args = null, $checkAccess = true) if (isset($args['limit'])) { $limit = ' LIMIT ' . intval($args['limit'][0]); } + + if (isset($args['overdue'])) { + $where .= " AND date > date('1970-01-01') AND date < date('now') "; + } if (isset($args['md5'])) { if (!is_array($args['md5'])) {