mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Frytimo pr patches for php8.1 (#6630)
* Passing null to parameter #2 ($string) of type string is deprecated * Passing null to parameter #1 ($string) of type string is deprecated * php 8.1 fixes * php 8.1 fixes - replace strlen($var) > 0 with !empty($var) * php 8.1 fixes - replace ${var} with {$var} * php 8.1 fixes - replace ${var} with {$var} * php 8.1 fixes - replace ${var} with {$var} * php 8.1 fixes - replace ${var} with {$var} * php 8.1 fixes - strlower with null * php 8.1 fixes - strreplace with null * php 8.1 fixes - passing null to base64_decode * php 8.1 fixes - check for false and check for null on $this->dir * php 8.1 fixes - remove assignment of $db variable to modules object * php 8.1 fixes - avoid sending null to substr * php 8.1 fixes - change ${var} to {$var} * php 8.1 fixes - check for null before preg_replace * php 8.1 fixes - remove setting db variable on domains object * php 8.1 fixes - set empty string if $row['domain_setting_subcategory'] is null * php 8.1 fixes - set empty string if $_REQUEST['show'] is not available * php 8.1 fixes * php 8.1 fixes - correct $_POST checking syntax * php 8.1 fixes - correct $_POST variables * php 8.1 fixes * Use brackets consistently * Update user_setting_edit.php * Change to not empty * Update device.php * Update text.php --------- Co-authored-by: Tim Fry <tim@voipstratus.com> Co-authored-by: FusionPBX <markjcrane@gmail.com>
This commit is contained in:
@@ -58,79 +58,79 @@
|
||||
if(permission_exists('xml_cdr_all') && ($_GET['showall'] === 'true')){
|
||||
$search_url .= '&showall=true';
|
||||
}
|
||||
if (strlen($_GET['direction']) > 0) {
|
||||
if (!empty($_GET['direction'])) {
|
||||
$search_url .= '&direction='.urlencode($_GET['direction']);
|
||||
}
|
||||
if (strlen($_GET['leg']) > 0) {
|
||||
if (!empty($_GET['leg'])) {
|
||||
$search_url .= '&leg='.urlencode($_GET['leg']);
|
||||
}
|
||||
if (strlen($_GET['caller_id_name']) > 0) {
|
||||
if (!empty($_GET['caller_id_name'])) {
|
||||
$search_url .= '&caller_id_name='.urlencode($_GET['caller_id_name']);
|
||||
}
|
||||
if (strlen($_GET['caller_extension_uuid']) > 0) {
|
||||
if (!empty($_GET['caller_extension_uuid'])) {
|
||||
$search_url .= '&caller_extension_uuid='.urlencode($_GET['caller_extension_uuid']);
|
||||
}
|
||||
if (strlen($_GET['caller_id_number']) > 0) {
|
||||
if (!empty($_GET['caller_id_number'])) {
|
||||
$search_url .= '&caller_id_number='.urlencode($_GET['caller_id_number']);
|
||||
}
|
||||
if (strlen($_GET['destination_number']) > 0) {
|
||||
if (!empty($_GET['destination_number'])) {
|
||||
$search_url .= '&destination_number='.urlencode($_GET['destination_number']);
|
||||
}
|
||||
if (strlen($_GET['context']) > 0) {
|
||||
if (!empty($_GET['context'])) {
|
||||
$search_url .= '&context='.urlencode($_GET['context']);
|
||||
}
|
||||
if (strlen($_GET['start_stamp_begin']) > 0) {
|
||||
if (!empty($_GET['start_stamp_begin'])) {
|
||||
$search_url .= '&start_stamp_begin='.urlencode($_GET['start_stamp_begin']);
|
||||
}
|
||||
if (strlen($_GET['start_stamp_end']) > 0) {
|
||||
if (!empty($_GET['start_stamp_end'])) {
|
||||
$search_url .= '&start_stamp_end='.urlencode($_GET['start_stamp_end']);
|
||||
}
|
||||
if (strlen($_GET['answer_stamp_begin']) > 0) {
|
||||
if (!empty($_GET['answer_stamp_begin'])) {
|
||||
$search_url .= '&answer_stamp_begin='.urlencode($_GET['answer_stamp_begin']);
|
||||
}
|
||||
if (strlen($_GET['answer_stamp_end']) > 0) {
|
||||
if (!empty($_GET['answer_stamp_end'])) {
|
||||
$search_url .= '&answer_stamp_end='.urlencode($_GET['answer_stamp_end']);
|
||||
}
|
||||
if (strlen($_GET['end_stamp_begin']) > 0) {
|
||||
if (!empty($_GET['end_stamp_begin'])) {
|
||||
$search_url .= '&end_stamp_begin='.urlencode($_GET['end_stamp_begin']);
|
||||
}
|
||||
if (strlen($_GET['end_stamp_end']) > 0) {
|
||||
if (!empty($_GET['end_stamp_end'])) {
|
||||
$search_url .= '&end_stamp_end='.urlencode($_GET['end_stamp_end']);
|
||||
}
|
||||
if (strlen($_GET['duration']) > 0) {
|
||||
if (!empty($_GET['duration'])) {
|
||||
$search_url .= '&duration='.urlencode($_GET['duration']);
|
||||
}
|
||||
if (strlen($_GET['billsec']) > 0) {
|
||||
if (!empty($_GET['billsec'])) {
|
||||
$search_url .= '&billsec='.urlencode($_GET['billsec']);
|
||||
}
|
||||
if (strlen($_GET['hangup_cause']) > 0) {
|
||||
if (!empty($_GET['hangup_cause'])) {
|
||||
$search_url .= '&hangup_cause='.urlencode($_GET['hangup_cause']);
|
||||
}
|
||||
if (strlen($_GET['uuid']) > 0) {
|
||||
if (!empty($_GET['uuid'])) {
|
||||
$search_url .= '&uuid='.urlencode($_GET['uuid']);
|
||||
}
|
||||
if (strlen($_GET['bleg_uuid']) > 0) {
|
||||
if (!empty($_GET['bleg_uuid'])) {
|
||||
$search_url .= '&bleg_uuid='.urlencode($_GET['bleg_uuid']);
|
||||
}
|
||||
if (strlen($_GET['accountcode']) > 0) {
|
||||
if (!empty($_GET['accountcode'])) {
|
||||
$search_url .= '&accountcode='.urlencode($_GET['accountcode']);
|
||||
}
|
||||
if (strlen($_GET['read_codec']) > 0) {
|
||||
if (!empty($_GET['read_codec'])) {
|
||||
$search_url .= '&read_codec='.urlencode($_GET['read_codec']);
|
||||
}
|
||||
if (strlen($_GET['write_codec']) > 0) {
|
||||
if (!empty($_GET['write_codec'])) {
|
||||
$search_url .= '&write_codec='.urlencode($_GET['write_codec']);
|
||||
}
|
||||
if (strlen($_GET['remote_media_ip']) > 0) {
|
||||
if (!empty($_GET['remote_media_ip'])) {
|
||||
$search_url .= '&remote_media_ip='.urlencode($_GET['remote_media_ip']);
|
||||
}
|
||||
if (strlen($_GET['network_addr']) > 0) {
|
||||
if (!empty($_GET['network_addr'])) {
|
||||
$search_url .= '&network_addr='.urlencode($_GET['network_addr']);
|
||||
}
|
||||
if (strlen($_GET['mos_comparison']) > 0) {
|
||||
if (!empty($_GET['mos_comparison'])) {
|
||||
$search_url .= '&mos_comparison='.urlencode($_GET['mos_comparison']);
|
||||
}
|
||||
if (strlen($_GET['mos_score']) > 0) {
|
||||
if (!empty($_GET['mos_score'])) {
|
||||
$search_url .= '&mos_score='.urlencode($_GET['mos_score']);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user