From 9f346abfd00acd5693eabbf4b3e60cfeba0f1f09 Mon Sep 17 00:00:00 2001 From: luis daniel lucio quiroz Date: Fri, 1 May 2015 17:39:13 +0000 Subject: [PATCH] lcr_currency wrong set --- app/xml_cdr/v_xml_cdr_import.php | 3 +-- app/xml_cdr/xml_cdr_inc.php | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/xml_cdr/v_xml_cdr_import.php b/app/xml_cdr/v_xml_cdr_import.php index 5af4a770d7..0a3696d668 100644 --- a/app/xml_cdr/v_xml_cdr_import.php +++ b/app/xml_cdr/v_xml_cdr_import.php @@ -265,7 +265,6 @@ $db2->sql = $sql_rate; $db2->result = $db2->execute(); // print_r($db2->result); - $lcr_currency = (strlen($db2->result[0]['currency'])?check_str($db2->result[0]['currency']):'USD'); $lcr_currency = (strlen($db2->result[0]['currency'])?check_str($db2->result[0]['currency']): (strlen($_SESSION['billing']['currency']['text'])?$_SESSION['billing']['currency']['text']:'USD') ); @@ -597,4 +596,4 @@ fclose($fp); } -?> \ No newline at end of file +?> diff --git a/app/xml_cdr/xml_cdr_inc.php b/app/xml_cdr/xml_cdr_inc.php index f687e87d90..7e66001d39 100644 --- a/app/xml_cdr/xml_cdr_inc.php +++ b/app/xml_cdr/xml_cdr_inc.php @@ -236,7 +236,6 @@ else { } } unset($prep_statement, $result); - //limit the number of results if ($num_rows > $_SESSION['cdr']['limit']['numeric']) { $num_rows = $_SESSION['cdr']['limit']['numeric']; @@ -310,4 +309,4 @@ else { $row_style["1"] = "row_style1"; $row_style["2"] = "row_style2"; -?> \ No newline at end of file +?>