projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56040e0
)
NotifySend.php
author
Alan Knowles
<alan@akkbhome.com>
Wed, 6 Apr 2011 14:58:23 +0000
(22:58 +0800)
committer
Alan Knowles
<alan@akkbhome.com>
Wed, 6 Apr 2011 14:58:23 +0000
(22:58 +0800)
NotifySend.php
patch
|
blob
|
history
diff --git
a/NotifySend.php
b/NotifySend.php
index
44b78d2
..
6a389a9
100644
(file)
--- a/
NotifySend.php
+++ b/
NotifySend.php
@@
-37,6
+37,9
@@
class Pman_Core_NotifySend extends Pman
// phpinfo();exit;
$w = DB_DataObject::factory($this->table);
+ if (!$w->get($id) || strtotime($w->act_when) < strtotime($w->sent)) {
+ die("invalid time");
+ }
$w->whereAdd('act_when > sent'); // eg.. sent is not valid..
$w->orderBy('act_when ASC'); // oldest first.
$w->limit(1000); // we can run 1000 ...