CDR: Updates for PHP 8.1
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user