projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cd9960
)
Notify.php
author
Alan Knowles
<alan@akkbhome.com>
Wed, 6 Apr 2011 15:27:20 +0000
(23:27 +0800)
committer
Alan Knowles
<alan@akkbhome.com>
Wed, 6 Apr 2011 15:27:20 +0000
(23:27 +0800)
Notify.php
patch
|
blob
|
history
diff --git
a/Notify.php
b/Notify.php
index
de1ab40
..
7a41894
100644
(file)
--- a/
Notify.php
+++ b/
Notify.php
@@
-40,6
+40,8
@@
class Pman_Core_Notify extends Pman
$w = DB_DataObject::factory($this->table);
$w->whereAdd('act_when > sent'); // eg.. sent is not valid..
+ $w->whereAdd('act_when > NOW()'); // eg.. not if future..
+
$w->orderBy('act_when ASC'); // oldest first.
$w->limit(1000); // we can run 1000 ...
$ar = $w->fetchAll('id');