UpdateCurrencyRate.php
authorEdward <edward@roojs.com>
Mon, 20 Oct 2014 07:56:34 +0000 (15:56 +0800)
committerEdward <edward@roojs.com>
Mon, 20 Oct 2014 07:56:34 +0000 (15:56 +0800)
UpdateCurrencyRate.php

index 1502b63..6c41e2b 100644 (file)
@@ -84,7 +84,7 @@ class Pman_Core_UpdateCurrencyRate extends Pman
         
         $elements = $xpath->query("table/tr/td/pre", $ts->item(0));
         
-        $rate = str_getcsv($elements->item(0)->nodeValue, ",", "\n\t");
+        $rate = array_map('str_getcsv', $elements->item(0)->nodeValue);
         
         print_r($rate);exit;