From 7c552e9a5232f4569af6595403ebfa5138f31453 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Thu, 7 Dec 2017 18:28:51 +0100 Subject: [PATCH] Only send overdue notifications for unarchived cards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Db/CardMapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Db/CardMapper.php b/lib/Db/CardMapper.php index 56bb84a37..a59e6929c 100644 --- a/lib/Db/CardMapper.php +++ b/lib/Db/CardMapper.php @@ -125,7 +125,7 @@ class CardMapper extends DeckMapper implements IPermissionMapper { } public function findOverdue() { - $sql = 'SELECT id,title,duedate,notified from `*PREFIX*deck_cards` WHERE duedate < NOW()'; + $sql = 'SELECT id,title,duedate,notified from `*PREFIX*deck_cards` WHERE duedate < NOW() AND NOT archived'; return $this->findEntities($sql); }