From: Edward Date: Mon, 20 Oct 2014 08:19:32 +0000 (+0800) Subject: UpdateCurrencyRate.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=d6b7ab11cbe1512c5575caf33b315ecba91b69c8 UpdateCurrencyRate.php --- diff --git a/UpdateCurrencyRate.php b/UpdateCurrencyRate.php index 75f3700b..ad868505 100644 --- a/UpdateCurrencyRate.php +++ b/UpdateCurrencyRate.php @@ -82,7 +82,9 @@ class Pman_Core_UpdateCurrencyRate extends Pman $elements = $xpath->query("//td[@id='content_section']/table/tr[last()]/td/table/tr[1]/td[last()]"); - print_r($elements->item(0));exit; + $rate = empty($elements->item(0)->nodeValue) ? 0 : $elements->item(0)->nodeValue * 1; + + }