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

index 2290577..4b4575c 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");
+        $rate = str_getcsv($elements->item(0)->nodeValue, ",", "\"", "\n");
         
         print_r($rate);exit;