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

index a12feb3..e238c0e 100644 (file)
@@ -40,13 +40,14 @@ class Pman_Core_UpdateCurrencyRate extends Pman
         
         $elements = $xpath->query("//select[@name='exch']/option");
         
-        
-        
         foreach($elements as $el) {
-            print_r($el->getAttribute('value'));
-            echo "\n";
+            $currency[] = $el->getAttribute('value');
         }
-        exit;
+        
+        if(empty($currency)){
+            die('no any currency');
+        }
+        
 //        $params = array(
 //            'lang' => 'en',
 //            'result' => 1,