Destination Summary: Mitigate PHP 8.x warnings.

This commit is contained in:
fusionate 2024-05-13 11:46:51 -06:00
parent 0a419a7698
commit fc90314009
No known key found for this signature in database
3 changed files with 57 additions and 5 deletions

View File

@ -2343,4 +2343,56 @@ $text['label-unique_callers']['zh-cn'] = "独特的来电者";
$text['label-unique_callers']['ja-jp'] = "ユニークな発信者";
$text['label-unique_callers']['ko-kr'] = "고유 발신자";
?>
$text['label-from']['en-us'] = "From";
$text['label-from']['en-gb'] = "From";
$text['label-from']['ar-eg'] = "من";
$text['label-from']['de-at'] = "Von";
$text['label-from']['de-ch'] = "Von";
$text['label-from']['de-de'] = "Von";
$text['label-from']['el-gr'] = "Από";
$text['label-from']['es-cl'] = "Comienzo";
$text['label-from']['es-mx'] = "Comienzo";
$text['label-from']['fr-ca'] = "Début";
$text['label-from']['fr-fr'] = "Début";
$text['label-from']['he-il'] = "מ";
$text['label-from']['it-it'] = "Da";
$text['label-from']['nl-nl'] = "Van";
$text['label-from']['pl-pl'] = "Od";
$text['label-from']['pt-br'] = "Começo";
$text['label-from']['pt-pt'] = "Começo";
$text['label-from']['ro-ro'] = "Din";
$text['label-from']['ru-ru'] = "От";
$text['label-from']['sv-se'] = "Från";
$text['label-from']['uk-ua'] = "Від";
$text['label-from']['tr-tr'] = "İtibaren";
$text['label-from']['zh-cn'] = "";
$text['label-from']['ja-jp'] = "から";
$text['label-from']['ko-kr'] = "에서";
$text['label-to']['en-us'] = "To";
$text['label-to']['en-gb'] = "To";
$text['label-to']['ar-eg'] = "ل";
$text['label-to']['de-at'] = "Bis";
$text['label-to']['de-ch'] = "Bis";
$text['label-to']['de-de'] = "Bis";
$text['label-to']['el-gr'] = "Προς την";
$text['label-to']['es-cl'] = "Final";
$text['label-to']['es-mx'] = "Final";
$text['label-to']['fr-ca'] = "Fin";
$text['label-to']['fr-fr'] = "Fin";
$text['label-to']['he-il'] = "ל";
$text['label-to']['it-it'] = "A";
$text['label-to']['nl-nl'] = "Naar";
$text['label-to']['pl-pl'] = "Do";
$text['label-to']['pt-br'] = "Final";
$text['label-to']['pt-pt'] = "Final";
$text['label-to']['ro-ro'] = "La";
$text['label-to']['ru-ru'] = "До";
$text['label-to']['sv-se'] = "Till";
$text['label-to']['uk-ua'] = "До";
$text['label-to']['tr-tr'] = "İle";
$text['label-to']['zh-cn'] = "";
$text['label-to']['ja-jp'] = "";
$text['label-to']['ko-kr'] = "에게";
?>

View File

@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2023
Portions created by the Initial Developer are Copyright (C) 2023-2024
the Initial Developer. All Rights Reserved.
Contributor(s):
@ -47,7 +47,7 @@
$quick_select = $_REQUEST['quick_select'];
$start_stamp_begin = $_REQUEST['start_stamp_begin'];
$start_stamp_end = $_REQUEST['start_stamp_end'];
$include_internal = $_REQUEST['include_internal'];
//$include_internal = $_REQUEST['include_internal'];
}
else {
$quick_select = 3; //set default
@ -59,7 +59,7 @@
$destination->quick_select = $quick_select;
$destination->start_stamp_begin = $start_stamp_begin ?? null;
$destination->start_stamp_end = $start_stamp_end ?? null;
$destination->include_internal = $include_internal ?? null;
//$destination->include_internal = $include_internal ?? null;
$summary = $destination->destination_summary();
//set the http header

View File

@ -1233,7 +1233,7 @@ if (!class_exists('destinations')) {
}
$sql .= " and direction = 'inbound' \n";
$sql .= " and caller_destination is not null \n";
$sql .= $sql_date_range;
$sql .= $sql_date_range ?? '';
$sql .= ") as c \n";
$sql .= "where \n";