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

index 188405d..959f6e7 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, ',');
+        $rate = str_getcsv($elements->item(0)->nodeValue, ",", "\n");
         
         print_r($rate);exit;