mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
CDR [Class]: Mitigate PHP 8.x warnings.
This commit is contained in:
@@ -1299,32 +1299,35 @@ if (!class_exists('xml_cdr')) {
|
||||
}
|
||||
|
||||
//debug - add the callee_id_number to the end of the status
|
||||
if (isset($_REQUEST['debug']) && $_REQUEST['debug'] == 'true' && !empty($row["caller_profile"]["destination_number"])
|
||||
and !empty($row["caller_profile"]["callee_id_number"])
|
||||
and $row["caller_profile"]["destination_number"] !== $row["caller_profile"]["callee_id_number"]) {
|
||||
if (
|
||||
isset($_REQUEST['debug']) && $_REQUEST['debug'] == 'true'
|
||||
&& !empty($row["caller_profile"]["destination_number"])
|
||||
&& !empty($row["caller_profile"]["callee_id_number"])
|
||||
&& $row["caller_profile"]["destination_number"] !== $row["caller_profile"]["callee_id_number"]
|
||||
) {
|
||||
$app['status'] .= ' ('.$row["caller_profile"]["callee_id_number"].')';
|
||||
}
|
||||
|
||||
//build the application urls
|
||||
$destination_url = "/app/".$app['application']."/".$destination->singular($app['application'])."_edit.php?id=".$app["uuid"];
|
||||
$application_url = "/app/".$app['application']."/".$app['application'].".php";
|
||||
if ($app['application'] == 'call_centers') {
|
||||
$destination_url = "/app/".$app['application']."/".$destination->singular($app['application'])."_queue_edit.php?id=".$app['uuid'];
|
||||
$application_url = "/app/".$app['application']."/".$destination->singular($app['application'])."_queues.php";
|
||||
$destination_url = "/app/".($app['application'] ?? '')."/".$destination->singular($app['application'] ?? '')."_edit.php?id=".($app["uuid"] ?? '');
|
||||
$application_url = "/app/".($app['application'] ?? '')."/".($app['application'] ?? '').".php";
|
||||
if (!empty($app['application']) && $app['application'] == 'call_centers') {
|
||||
$destination_url = "/app/".($app['application'] ?? '')."/".$destination->singular($app['application'] ?? '')."_queue_edit.php?id=".($app["uuid"] ?? '');
|
||||
$application_url = "/app/".($app['application'] ?? '')."/".$destination->singular($app['application'] ?? '')."_queues.php";
|
||||
}
|
||||
|
||||
//add the application and destination details
|
||||
$language2 = new text;
|
||||
$text2 = $language2->get($this->setting->get('domain', 'language'), 'app/'.$app['application']);
|
||||
$call_flow_summary[$x]["application_name"] = $app['application'];
|
||||
$call_flow_summary[$x]["application_label"] = trim($text2['title-'.$app['application']]);
|
||||
$text2 = $language2->get($this->setting->get('domain', 'language'), 'app/'.($app['application'] ?? ''));
|
||||
$call_flow_summary[$x]["application_name"] = ($app['application'] ?? '');
|
||||
$call_flow_summary[$x]["application_label"] = trim($text2['title-'.($app['application'] ?? '')] ?? '');
|
||||
$call_flow_summary[$x]["application_url"] = $application_url;
|
||||
$call_flow_summary[$x]["destination_uuid"] = $app['uuid'];
|
||||
$call_flow_summary[$x]["destination_name"] = $app['name'];
|
||||
$call_flow_summary[$x]["destination_uuid"] = ($app["uuid"] ?? '');
|
||||
$call_flow_summary[$x]["destination_name"] = ($app['name'] ?? '');
|
||||
$call_flow_summary[$x]["destination_url"] = $destination_url;
|
||||
$call_flow_summary[$x]["destination_number"] = $row["caller_profile"]["destination_number"];
|
||||
$call_flow_summary[$x]["destination_label"] = $app['label'];
|
||||
$call_flow_summary[$x]["destination_status"] = $app['status'];
|
||||
$call_flow_summary[$x]["destination_label"] = ($app['label'] ?? '');
|
||||
$call_flow_summary[$x]["destination_status"] = ($app['status'] ?? '');
|
||||
$call_flow_summary[$x]["destination_description"] = $app['description'] ?? '';
|
||||
//$call_flow_summary[$x]["application"] = $app;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user