X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Notify.php;h=15bbc7a28980e0d5c8d64f43183c38b9b8e42350;hp=bacad593b965574073f9f4e689da70f998a54b9e;hb=7e9cdd246cc8bba1ce46a4db263a0f49b7cbc5a0;hpb=d79f1b0b766ed571150c04e2a102c10a52a0bfba diff --git a/Notify.php b/Notify.php index bacad593..15bbc7a2 100644 --- a/Notify.php +++ b/Notify.php @@ -123,8 +123,11 @@ class Pman_Core_Notify extends Pman $w = DB_DataObject::factory($this->table); if (!$showold) { - $w->whereAdd('act_when > sent'); // eg.. sent is not valid.. + // standard + + $w->whereAdd('act_when > sent'); // eg.. sent is not valid.. + $w->whereAdd('act_start > NOW() - INTERVAL 14 DAY'); // ignore the ones stuck in the queue if (!$this->force) { $w->whereAdd('act_when < NOW()'); // eg.. not if future.. }