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

index e238c0e..65a0bd4 100644 (file)
@@ -33,9 +33,13 @@ class Pman_Core_UpdateCurrencyRate extends Pman
         
         $response = $this->curl($this->actionUrl, array(), 'GET');
         
+        libxml_use_internal_errors (true);
+        
         $doc = new DOMDocument();
         $doc->loadHTML($response);
         
+        libxml_use_internal_errors (false);
+        
         $xpath = new DOMXpath($doc);
         
         $elements = $xpath->query("//select[@name='exch']/option");