projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
688d061
)
fix date
author
Alan
<alan@roojs.com>
Fri, 13 Oct 2023 05:25:51 +0000
(13:25 +0800)
committer
Alan
<alan@roojs.com>
Fri, 13 Oct 2023 05:25:51 +0000
(13:25 +0800)
NotifySend.php
patch
|
blob
|
history
diff --git
a/NotifySend.php
b/NotifySend.php
index
1140470
..
92572eb
100644
(file)
--- a/
NotifySend.php
+++ b/
NotifySend.php
@@
-124,12
+124,12
@@
class Pman_Core_NotifySend extends Pman
HTML_FlexyFramework::get()->Core_Mailer['debug'] = true;
}
HTML_FlexyFramework::get()->Core_Mailer['debug'] = true;
}
- $sent = (empty($w->sent) || preg_match('/^
1
000/', $w->sent)) ? false : true;
+ $sent = (empty($w->sent) || preg_match('/^
(0|1)
000/', $w->sent)) ? false : true;
if (!$force && (!empty($w->msgid) || $sent)) {
$ww = clone($w);
if (!$sent) { // fix sent.
if (!$force && (!empty($w->msgid) || $sent)) {
$ww = clone($w);
if (!$sent) { // fix sent.
- $w->sent =
$w->sent == '0000-00-00 00:00:00'
? $w->sqlValue('NOW()') :$w->sent; // do not update if sent.....
+ $w->sent =
preg_match('/^(0|1)000/', $w->sent)
? $w->sqlValue('NOW()') :$w->sent; // do not update if sent.....
$w->update($ww);
}
$this->errorHandler("message has been sent already.\n");
$w->update($ww);
}
$this->errorHandler("message has been sent already.\n");