Notify.php
authorAlan Knowles <alan@roojs.com>
Mon, 17 Sep 2012 11:06:02 +0000 (19:06 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 17 Sep 2012 11:06:02 +0000 (19:06 +0800)
Notify.php

index a462098..84d3c4a 100644 (file)
@@ -117,8 +117,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 DAYS'); // ignore the ones stuck in the queue
             if (!$this->force) {
                 $w->whereAdd('act_when < NOW()'); // eg.. not if future..
             }