From: Alan Knowles Date: Wed, 10 Jul 2013 11:48:47 +0000 (+0800) Subject: DataObjects/Core_notify.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=f95c0f6901fbe224a69d9561c0178c3161c2f459 DataObjects/Core_notify.php --- diff --git a/DataObjects/Core_notify.php b/DataObjects/Core_notify.php index 0e80c6de..44a3160a 100644 --- a/DataObjects/Core_notify.php +++ b/DataObjects/Core_notify.php @@ -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':