From 8316a8ef2b8607f1028ccd262c055c70b8c26fe4 Mon Sep 17 00:00:00 2001 From: Edward Date: Mon, 20 Oct 2014 16:49:00 +0800 Subject: [PATCH] UpdateCurrencyRate.php --- UpdateCurrencyRate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UpdateCurrencyRate.php b/UpdateCurrencyRate.php index b1fed61e..63ba6449 100644 --- a/UpdateCurrencyRate.php +++ b/UpdateCurrencyRate.php @@ -90,7 +90,7 @@ class Pman_Core_UpdateCurrencyRate extends Pman $rate = empty($elements->item(0)->nodeValue) ? 0 : $elements->item(0)->nodeValue * 1; $curr = DB_DataObject::factory('core_curr_rate'); - print_R($curr);exit; + $curr->curr = $c; $o = false; @@ -98,7 +98,7 @@ class Pman_Core_UpdateCurrencyRate extends Pman if($curr->find(true)){ $o = clone($curr); } - + print_R($curr);exit; $curr->setFrom(array( 'rate' => $rate, 'from' => date('Y-m-d H:i:s', strtotime($fromDate)), -- 2.39.2