From 8a3d98954b2496920011e5b287275d04007f83d1 Mon Sep 17 00:00:00 2001 From: Edward Date: Mon, 20 Oct 2014 16:50: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 a5e2c7a4..04b63b04 100644 --- 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)) )); -print_R($o);exit; + (empty($o)) ? $curr->insert() : $curr->update($o); - + print_R($curr);exit; $this->jok("DONE"); } -- 2.39.2