projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9140f52
)
DataObjects/Core_watch.php
author
Alan Knowles
<alan@akbkhome.com>
Sun, 28 Oct 2012 13:54:22 +0000
(21:54 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Sun, 28 Oct 2012 13:54:22 +0000
(21:54 +0800)
DataObjects/Core_watch.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_watch.php
b/DataObjects/Core_watch.php
index
86f6f4b
..
a7c9f47
100644
(file)
--- a/
DataObjects/Core_watch.php
+++ b/
DataObjects/Core_watch.php
@@
-97,20
+97,19
@@
class Pman_Core_DataObjects_Core_watch extends DB_DataObject
$nn->ontable = $ontable;
$nn->onid = $onid;
$nn->evtype = $w->medium;
$nn->ontable = $ontable;
$nn->onid = $onid;
$nn->evtype = $w->medium;
- $n
= clone($nn)
;
- $n->person_id = $p;
- $nf = clone($n);
+ $n
n->person_id = $p
;
+
+ $nf = clone($n
n
);
$nf->whereAdd('sent < act_when');
if ($nf->count()) {
// we have a item in the queue for that waiting to be sent..
continue;
}
$nf->whereAdd('sent < act_when');
if ($nf->count()) {
// we have a item in the queue for that waiting to be sent..
continue;
}
- $n->act_start( date("Y-m-d H:i:s", $when !== false ? strtotime($when) : time()) );
- $n->evtype = $
- $n->insert();
-
+ $nn->act_start( date("Y-m-d H:i:s", $when !== false ? strtotime($when) : time()) );
+ $n->insert();
- }
+
+ }
}
// static really...
}
// static really...