projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f95c0f6
)
DataObjects/Core_notify.php
author
Alan Knowles
<alan@roojs.com>
Wed, 10 Jul 2013 11:49:28 +0000
(19:49 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 10 Jul 2013 11:49:28 +0000
(19:49 +0800)
DataObjects/Core_notify.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_notify.php
b/DataObjects/Core_notify.php
index
44a3160
..
80ee77b
100644
(file)
--- 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: