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

index 3e47c34..b5e05d5 100644 (file)
@@ -102,6 +102,7 @@ class Pman_Core_UpdateCurrencyRate extends Pman
                 'to'    => date('Y-m-d H:i:s', strtotime($toDate))
             ));
 
+            (empty($o)) ? $curr->insert() ? $curr->update($o);
         }