projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e1d826
)
UpdateCurrencyRate.php
author
Edward
<edward@roojs.com>
Mon, 20 Oct 2014 07:17:47 +0000
(15:17 +0800)
committer
Edward
<edward@roojs.com>
Mon, 20 Oct 2014 07:17:47 +0000
(15:17 +0800)
UpdateCurrencyRate.php
patch
|
blob
|
history
diff --git
a/UpdateCurrencyRate.php
b/UpdateCurrencyRate.php
index
a12feb3
..
e238c0e
100644
(file)
--- a/
UpdateCurrencyRate.php
+++ b/
UpdateCurrencyRate.php
@@
-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,