UpdateCurrencyRate.php
authorEdward <edward@roojs.com>
Mon, 20 Oct 2014 08:26:55 +0000 (16:26 +0800)
committerEdward <edward@roojs.com>
Mon, 20 Oct 2014 08:26:55 +0000 (16:26 +0800)
UpdateCurrencyRate.php

index b5e05d5..e5e89c1 100644 (file)
@@ -102,11 +102,9 @@ class Pman_Core_UpdateCurrencyRate extends Pman
                 'to'    => date('Y-m-d H:i:s', strtotime($toDate))
             ));
 
-            (empty($o)) ? $curr->insert() ? $curr->update($o);
+            (empty($o)) ? $curr->insert() : $curr->update($o);
         }
         
-        
-        
     }
     
     function curl($url, $request = array(), $method = 'GET')