CDR: Updates for PHP 8.1

This commit is contained in:
fusionate
2023-06-01 22:55:19 +00:00
parent 85f378c8f2
commit 69900445b5
6 changed files with 112 additions and 76 deletions
+2 -2
View File
@@ -294,13 +294,13 @@
$sql .= "c.rtp_audio_in_mos, \n";
}
$sql .= "(c.answer_epoch - c.start_epoch) as tta ";
if ($_REQUEST['show'] == "all" && permission_exists('xml_cdr_all')) {
if (!empty($_REQUEST['show']) && $_REQUEST['show'] == "all" && permission_exists('xml_cdr_all')) {
$sql .= ", c.domain_name \n";
}
$sql .= "from v_xml_cdr as c \n";
$sql .= "left join v_extensions as e on e.extension_uuid = c.extension_uuid \n";
$sql .= "inner join v_domains as d on d.domain_uuid = c.domain_uuid \n";
if ($_REQUEST['show'] == "all" && permission_exists('xml_cdr_all')) {
if (!empty($_REQUEST['show']) && $_REQUEST['show'] == "all" && permission_exists('xml_cdr_all')) {
$sql .= "where true \n";
}
else {