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

index d191e76..f1724e5 100644 (file)
@@ -84,7 +84,9 @@ class Pman_Core_UpdateCurrencyRate extends Pman
         
         $elements = $xpath->query("table/tr/td/pre", $ts->item(0));
         
-        $rate = str_getcsv($elements->item(0)->nodeValue, ",", "\"", "\\");
+        ini_set("auto_detect_line_endings", true);
+        
+        $rate = str_getcsv($elements->item(0)->nodeValue, ",", "\"");
         
         print_r($rate);exit;