From 127885a064c85d16d62ffaaef5b1be4bbb60f4d5 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 5 Aug 2013 16:29:21 +0800 Subject: [PATCH] DataObjects/Core_notify.php --- DataObjects/Core_notify.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/DataObjects/Core_notify.php b/DataObjects/Core_notify.php index 3b174ed3..b3eaf7b0 100644 --- a/DataObjects/Core_notify.php +++ b/DataObjects/Core_notify.php @@ -110,6 +110,12 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject return !empty($this->msgid); } + function whereAddUndelivered() + { + $tn = $this->tableName(); + $this->whereAdd("$tn.msgid IS NULL OR $tn.msgid = ''"); + } + function status() // used by commandline reporting at present.. { switch($this->event_id) { -- 2.39.2