projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
afa5755
)
UpdateCurrencyRate.php
author
Edward
<edward@roojs.com>
Mon, 20 Oct 2014 08:50:00 +0000
(16:50 +0800)
committer
Edward
<edward@roojs.com>
Mon, 20 Oct 2014 08:50:00 +0000
(16:50 +0800)
UpdateCurrencyRate.php
patch
|
blob
|
history
diff --git
a/UpdateCurrencyRate.php
b/UpdateCurrencyRate.php
index
a5e2c7a
..
04b63b0
100644
(file)
--- a/
UpdateCurrencyRate.php
+++ b/
UpdateCurrencyRate.php
@@
-104,9
+104,9
@@
class Pman_Core_UpdateCurrencyRate extends Pman
'from' => date('Y-m-d H:i:s', strtotime($fromDate)),
'to' => date('Y-m-d H:i:s', strtotime($toDate))
));
'from' => date('Y-m-d H:i:s', strtotime($fromDate)),
'to' => date('Y-m-d H:i:s', strtotime($toDate))
));
-print_R($o);exit;
+
(empty($o)) ? $curr->insert() : $curr->update($o);
(empty($o)) ? $curr->insert() : $curr->update($o);
-
+ print_R($curr);exit;
$this->jok("DONE");
}
$this->jok("DONE");
}