projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7da3add
)
Notify.php
author
Alan Knowles
<alan@roojs.com>
Mon, 17 Sep 2012 11:06:02 +0000
(19:06 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 17 Sep 2012 11:06:02 +0000
(19:06 +0800)
Notify.php
patch
|
blob
|
history
diff --git
a/Notify.php
b/Notify.php
index
a462098
..
84d3c4a
100644
(file)
--- a/
Notify.php
+++ b/
Notify.php
@@
-117,8
+117,11
@@
class Pman_Core_Notify extends Pman
$w = DB_DataObject::factory($this->table);
if (!$showold) {
- $w->whereAdd('act_when > sent'); // eg.. sent is not valid..
+ // standard
+
+ $w->whereAdd('act_when > sent'); // eg.. sent is not valid..
+ $w->whereAdd('act_start > NOW() - INTERVAL 14 DAYS'); // ignore the ones stuck in the queue
if (!$this->force) {
$w->whereAdd('act_when < NOW()'); // eg.. not if future..
}