lcr_currency wrong set

This commit is contained in:
luis daniel lucio quiroz
2015-05-01 17:39:13 +00:00
parent 3526897a0c
commit 9f346abfd0
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -265,7 +265,6 @@
$db2->sql = $sql_rate; $db2->sql = $sql_rate;
$db2->result = $db2->execute(); $db2->result = $db2->execute();
// print_r($db2->result); // 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']): $lcr_currency = (strlen($db2->result[0]['currency'])?check_str($db2->result[0]['currency']):
(strlen($_SESSION['billing']['currency']['text'])?$_SESSION['billing']['currency']['text']:'USD') (strlen($_SESSION['billing']['currency']['text'])?$_SESSION['billing']['currency']['text']:'USD')
); );
@@ -597,4 +596,4 @@
fclose($fp); fclose($fp);
} }
?> ?>
+1 -2
View File
@@ -236,7 +236,6 @@ else {
} }
} }
unset($prep_statement, $result); unset($prep_statement, $result);
//limit the number of results //limit the number of results
if ($num_rows > $_SESSION['cdr']['limit']['numeric']) { if ($num_rows > $_SESSION['cdr']['limit']['numeric']) {
$num_rows = $_SESSION['cdr']['limit']['numeric']; $num_rows = $_SESSION['cdr']['limit']['numeric'];
@@ -310,4 +309,4 @@ else {
$row_style["1"] = "row_style1"; $row_style["1"] = "row_style1";
$row_style["2"] = "row_style2"; $row_style["2"] = "row_style2";
?> ?>