From: Alan Knowles Date: Wed, 10 Jul 2013 11:54:19 +0000 (+0800) Subject: DataObjects/Core_notify.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=58eba46bf3e5a5e7bf9725a10fe3f2117798213a DataObjects/Core_notify.php --- diff --git a/DataObjects/Core_notify.php b/DataObjects/Core_notify.php index cd30a2a1..bdf3b76a 100644 --- a/DataObjects/Core_notify.php +++ b/DataObjects/Core_notify.php @@ -149,7 +149,8 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject $this->whereAdd("msg_id != ''"); break; case 'FAILED'; - $this->whereAdd('event_id > 0 AND act_when <= NOW() '); + + $this->whereAdd('msg_id = '' AND event_id > 0 '); break; case 'PENDING';