From d6980a929caf2a68778266bd1fa5040bea4b0d14 Mon Sep 17 00:00:00 2001 From: luis daniel lucio quiroz Date: Fri, 1 May 2015 18:52:01 +0000 Subject: [PATCH] fix a pricing display bug when billing installed --- app/xml_cdr/xml_cdr.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/xml_cdr/xml_cdr.php b/app/xml_cdr/xml_cdr.php index cd769777ba..83a15eb7ad 100644 --- a/app/xml_cdr/xml_cdr.php +++ b/app/xml_cdr/xml_cdr.php @@ -602,7 +602,11 @@ else { if ($sell_price){ $price = currency_convert($sell_price, $billing_currency, $lcr_currency); } + else { + $price = 0; + } echo " ".number_format($price,6)." $billing_currency\n"; + unset ($sell_price, $price); } if (permission_exists("xml_cdr_pdd")) { echo " ".number_format($row['pdd_ms']/1000,2)."s\n";