From 757f1403755ac9d85438bf6ee8ebfe2c6fc762b6 Mon Sep 17 00:00:00 2001 From: larsmei Date: Thu, 5 Sep 2019 19:23:58 +0200 Subject: [PATCH] added funtionality to filter for overdue Tasks --- helper.php | 4 ++++ 1 file changed, 4 insertions(+) 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'])) {