From b74adefc3290b363933bda180e6ee9aaab989df2 Mon Sep 17 00:00:00 2001 From: luis daniel lucio quiroz Date: Mon, 29 Dec 2014 05:35:08 +0000 Subject: [PATCH] no strlen on billing maths --- app/xml_cdr/v_xml_cdr_import.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/xml_cdr/v_xml_cdr_import.php b/app/xml_cdr/v_xml_cdr_import.php index 614b487739..fd1389ce7f 100644 --- a/app/xml_cdr/v_xml_cdr_import.php +++ b/app/xml_cdr/v_xml_cdr_import.php @@ -272,9 +272,9 @@ $lcr_currency = (strlen($db2->result[0]['currency'])?check_str($db2->result[0]['currency']): (strlen($_SESSION['billing']['currency']['text'])?$_SESSION['billing']['currency']['text']:'USD') ); - $lcr_user_rate = (strlen($db2->result[0]['rate']))?strlen($db2->result[0]['rate']):0; - $lcr_user_first_increment = (strlen($db2->result[0]['connect_increment']))?strlen($db2->result[0]['connect_increment']):60; - $lcr_user_second_increment = (strlen($db2->result[0]['talk_increment']))?strlen($db2->result[0]['talk_increment']):60; + $lcr_user_rate = (strlen($db2->result[0]['rate']))?($db2->result[0]['rate']):0; + $lcr_user_first_increment = (strlen($db2->result[0]['connect_increment']))?($db2->result[0]['connect_increment']):60; + $lcr_user_second_increment = (strlen($db2->result[0]['talk_increment']))?($db2->result[0]['talk_increment']):60; $lcr_user_currency = (strlen($db2->result[0]['currency'])?check_str($db2->result[0]['currency']): (strlen($_SESSION['billing']['currency']['text'])?$_SESSION['billing']['currency']['text']:'USD') ); @@ -299,9 +299,9 @@ $lcr_currency = (strlen($db2->result[0]['currency'])?check_str($db2->result[0]['currency']): (strlen($_SESSION['billing']['currency']['text'])?$_SESSION['billing']['currency']['text']:'USD') ); - $lcr_user_rate = (strlen($db2->result[0]['rate']))?strlen($$db2->result[0]['rate']):0; - $lcr_user_first_increment = (strlen($db2->result[0]['connect_increment']))?strlen($db2->result[0]['connect_increment']):60; - $lcr_user_second_increment = (strlen($db2->result[0]['talk_increment']))?strlen($db2->result[0]['talk_increment']):60; + $lcr_user_rate = (strlen($db2->result[0]['rate']))?($$db2->result[0]['rate']):0; + $lcr_user_first_increment = (strlen($db2->result[0]['connect_increment']))?($db2->result[0]['connect_increment']):60; + $lcr_user_second_increment = (strlen($db2->result[0]['talk_increment']))?($db2->result[0]['talk_increment']):60; $lcr_user_currency = (strlen($db2->result[0]['currency'])?check_str($db2->result[0]['currency']): (strlen($_SESSION['billing']['currency']['text'])?$_SESSION['billing']['currency']['text']:'USD') );