Notify.php
authorAlan Knowles <alan@roojs.com>
Wed, 26 Jun 2013 13:15:50 +0000 (21:15 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 26 Jun 2013 13:15:50 +0000 (21:15 +0800)
Notify.php

index 2fa4af8..f7cbe57 100644 (file)
@@ -166,7 +166,7 @@ class Pman_Core_Notify extends Pman
             // standard
             
             //$w->whereAdd('act_when > sent'); // eg.. sent is not valid..
-            $w->whereAdd("sent < '1970-01-01'"); // eg.. sent is not valid..
+            $w->whereAdd("sent < '1970-01-01' OR sent IS NULL"); // eg.. sent is not valid..
             
             $w->whereAdd('act_start > NOW() - INTERVAL 14 DAY'); // ignore the ones stuck in the queue
             if (!$this->force) {