projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix sent update
[Pman.Core]
/
DataObjects
/
Core_notify.php
diff --git
a/DataObjects/Core_notify.php
b/DataObjects/Core_notify.php
index
d8f343a
..
e316e0a
100644
(file)
--- a/
DataObjects/Core_notify.php
+++ b/
DataObjects/Core_notify.php
@@
-352,7
+352,7
@@
class Pman_Core_DataObjects_Core_notify extends DB_DataObject
if(strtotime($this->act_when) > strtotime("NOW")){
$this->act_when = $this->sqlValue('NOW()');
}
if(strtotime($this->act_when) > strtotime("NOW")){
$this->act_when = $this->sqlValue('NOW()');
}
- $this->sent =
$this->sent == '0000-00-00 00:00:00'
? $this->sqlValue('NOW()') :$this->sent; // do not update if sent.....
+ $this->sent =
strtotime($this->sent) < 1
? $this->sqlValue('NOW()') :$this->sent; // do not update if sent.....
$this->msgid = $msgid;
$this->event_id = $event->id;
$this->update($ww);
$this->msgid = $msgid;
$this->event_id = $event->id;
$this->update($ww);