projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8dfc21
)
Import/Core_email.php
author
Alan Knowles
<alan@roojs.com>
Tue, 6 Oct 2015 06:05:18 +0000
(14:05 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 6 Oct 2015 06:05:18 +0000
(14:05 +0800)
Import/Core_email.php
patch
|
blob
|
history
diff --git
a/Import/Core_email.php
b/Import/Core_email.php
index
40b3749
..
cd28bc1
100644
(file)
--- a/
Import/Core_email.php
+++ b/
Import/Core_email.php
@@
-104,7
+104,12
@@
class Pman_Core_Import_Core_email extends Pman
));
if ($c->id) {
- $c->setFrom(array(
+
+
+ $c->update();
+ } else {
+
+ $c->setFrom(array(
'from_name' => $from_name,
'from_email' => $from_email,
'subject' => $parts[1]['Subject'],
@@
-114,8
+119,6
@@
class Pman_Core_Import_Core_email extends Pman
'created_dt' => date('Y-m-d H:i:s'),
));
- $c->update()
- } else {
$c->insert();
}