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

index 299488c..9ec34b2 100644 (file)
@@ -80,9 +80,7 @@ class Pman_Core_UpdateCurrencyRate extends Pman
         
         $xpath = new DOMXpath($doc);
         
-        $ts = $xpath->query("//td[@id='content_section']");
-        
-        $elements = $xpath->query("table/tr[last()]", $ts->item(0));
+        $elements = $xpath->query("//td[@id='content_section']/table/tr[last()]");
         
         print_r($elements);exit;