projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62646d2
)
DataObjects/Core_watch.php
author
Alan Knowles
<alan@roojs.com>
Fri, 30 Nov 2012 02:03:22 +0000
(10:03 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 30 Nov 2012 02:03:22 +0000
(10:03 +0800)
DataObjects/Core_watch.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_watch.php
b/DataObjects/Core_watch.php
index
2f1347b
..
e00ac72
100644
(file)
--- a/
DataObjects/Core_watch.php
+++ b/
DataObjects/Core_watch.php
@@
-102,14
+102,15
@@
class Pman_Core_DataObjects_Core_watch extends DB_DataObject
$nn->person_id = $w->person_id;
$nf = clone($nn);
- $nf->whereAdd('sent < act_when');
+ $nf->whereAdd('sent < act_when
- INTERVAL 1 HOUR
');
if ($nf->count()) {
// we have a item in the queue for that waiting to be sent..
continue;
}
$nn->act_start( date("Y-m-d H:i:s", $when !== false ? strtotime($when) : time()) );
$nn->insert();
- }
+ }
+
}
// static really...
/**