DataObjects/Core_notify.php
authorAlan Knowles <alan@roojs.com>
Wed, 10 Jul 2013 11:48:47 +0000 (19:48 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 10 Jul 2013 11:48:47 +0000 (19:48 +0800)
DataObjects/Core_notify.php

index 0e80c6d..44a3160 100644 (file)
@@ -146,12 +146,14 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject
             switch ($q['query']['status']) {
                 
                 case 'SUCCESS';
-                    $this->is_active = 1;
+                    $this->whereAdd("msgid != ''");
                     break;
                 case 'FAILED';
+                    $this->whereAdd('event_id > 0 AND act_when <= NOW() ');
                     $this->is_active = 0;
                     break;
-                case 'PENDING';  
+                case 'PENDING';
+                    
                     $this->is_active = 0;
                     break;
                 case 'ALL':