From 926e12e9982cf7163b8aaeae919458771ce160ac Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 10 Jul 2013 19:49:28 +0800 Subject: [PATCH] DataObjects/Core_notify.php --- DataObjects/Core_notify.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DataObjects/Core_notify.php b/DataObjects/Core_notify.php index 44a3160a..80ee77b6 100644 --- a/DataObjects/Core_notify.php +++ b/DataObjects/Core_notify.php @@ -146,15 +146,15 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject switch ($q['query']['status']) { case 'SUCCESS'; - $this->whereAdd("msgid != ''"); + $this->whereAdd("event_id < 0"); break; case 'FAILED'; $this->whereAdd('event_id > 0 AND act_when <= NOW() '); - $this->is_active = 0; + break; case 'PENDING'; + $this->whereAdd('event_id = 0 OR (event_id > 0 AND act_when > NOW() )'); - $this->is_active = 0; break; case 'ALL': default: -- 2.39.2