Misc: Updates for PHP 8.1 (?: to ??)

This commit is contained in:
fusionate 2023-06-06 22:05:05 +00:00
parent 35a52b46c3
commit d327d569f5
No known key found for this signature in database
16 changed files with 27 additions and 27 deletions

View File

@ -87,7 +87,7 @@
$call_flow_alternate_sound = $_POST["call_flow_alternate_sound"];
$call_flow_alternate_destination = $_POST["call_flow_alternate_destination"];
$call_flow_context = $_POST["call_flow_context"];
$call_flow_enabled = $_POST["call_flow_enabled"] ?: 'false';
$call_flow_enabled = $_POST["call_flow_enabled"] ?? 'false';
$call_flow_description = $_POST["call_flow_description"];
//seperate the action and the param

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) 2021
Portions created by the Initial Developer are Copyright (C) 2021-2023
the Initial Developer. All Rights Reserved.
*/
@ -73,7 +73,7 @@
$extension_setting_type = $_POST["extension_setting_type"];
$extension_setting_name = $_POST["extension_setting_name"];
$extension_setting_value = $_POST["extension_setting_value"];
$extension_setting_enabled = $_POST["extension_setting_enabled"] ?: 'false';
$extension_setting_enabled = $_POST["extension_setting_enabled"] ?? 'false';
$extension_setting_description = $_POST["extension_setting_description"];
}

View File

@ -110,7 +110,7 @@
$context = $_POST["context"];
$profile = $_POST["profile"];
$hostname = $_POST["hostname"];
$enabled = $_POST["enabled"] ?: 'false';
$enabled = $_POST["enabled"] ?? 'false';
$description = $_POST["description"];
}

View File

@ -133,7 +133,7 @@
$ivr_menu_direct_dial = $_POST["ivr_menu_direct_dial"];
$ivr_menu_ringback = $_POST["ivr_menu_ringback"];
$ivr_menu_cid_prefix = $_POST["ivr_menu_cid_prefix"];
$ivr_menu_enabled = $_POST["ivr_menu_enabled"] ?: 'false';
$ivr_menu_enabled = $_POST["ivr_menu_enabled"] ?? 'false';
$ivr_menu_description = $_POST["ivr_menu_description"];
$ivr_menu_options_delete = $_POST["ivr_menu_options_delete"];
$dialplan_uuid = $_POST["dialplan_uuid"];
@ -330,7 +330,7 @@
}
$array['ivr_menus'][0]['ivr_menu_options'][$y]["ivr_menu_option_order"] = $row["ivr_menu_option_order"];
$array['ivr_menus'][0]['ivr_menu_options'][$y]["ivr_menu_option_description"] = $row["ivr_menu_option_description"];
$array['ivr_menus'][0]["ivr_menu_options"][$y]["ivr_menu_option_enabled"] = !empty($row['ivr_menu_option_enabled']) ?: 'false';
$array['ivr_menus'][0]["ivr_menu_options"][$y]["ivr_menu_option_enabled"] = !empty($row['ivr_menu_option_enabled']) ?? 'false';
$y++;
}
}

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) 2008-2020
Portions created by the Initial Developer are Copyright (C) 2008-2023
the Initial Developer. All Rights Reserved.
Contributor(s):
@ -71,8 +71,8 @@
$module_description = $_POST["module_description"];
$module_category = $_POST["module_category"];
$module_order = $_POST["module_order"];
$module_enabled = $_POST["module_enabled"] ?: 'false';
$module_default_enabled = $_POST["module_default_enabled"] ?: 'false';
$module_enabled = $_POST["module_enabled"] ?? 'false';
$module_default_enabled = $_POST["module_default_enabled"] ?? 'false';
}
//process the data

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) 2018 - 2020
Portions created by the Initial Developer are Copyright (C) 2018-2023
the Initial Developer. All Rights Reserved.
*/
@ -57,7 +57,7 @@
if (!empty($_POST)) {
$number_translation_name = $_POST["number_translation_name"];
$number_translation_details = $_POST["number_translation_details"];
$number_translation_enabled = $_POST["number_translation_enabled"] ?: 'false';
$number_translation_enabled = $_POST["number_translation_enabled"] ?? 'false';
$number_translation_description = $_POST["number_translation_description"];
}

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) 2008-2020
Portions created by the Initial Developer are Copyright (C) 2008-2023
the Initial Developer. All Rights Reserved.
Contributor(s):
@ -85,7 +85,7 @@
}
$phrase_name = $_POST["phrase_name"];
$phrase_language = $_POST["phrase_language"];
$phrase_enabled = $_POST["phrase_enabled"] ?: 'false';
$phrase_enabled = $_POST["phrase_enabled"] ?? 'false';
$phrase_description = $_POST["phrase_description"];
$phrase_details_delete = $_POST["phrase_details_delete"] ?? '';

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) 2010-2020
Portions created by the Initial Developer are Copyright (C) 2010-2023
the Initial Developer. All Rights Reserved.
Contributor(s):
@ -197,7 +197,7 @@
$ring_group_forward_enabled = $_POST["ring_group_forward_enabled"];
$ring_group_forward_destination = $_POST["ring_group_forward_destination"];
$ring_group_forward_toll_allow = $_POST["ring_group_forward_toll_allow"];
$ring_group_enabled = $_POST["ring_group_enabled"] ?: 'false';
$ring_group_enabled = $_POST["ring_group_enabled"] ?? 'false';
$ring_group_description = $_POST["ring_group_description"];
$dialplan_uuid = $_POST["dialplan_uuid"];
//$ring_group_timeout_action = "transfer:1001 XML default";
@ -392,7 +392,7 @@
$array['ring_groups'][0]["ring_group_destinations"][$y]["destination_delay"] = $row['destination_delay'];
$array['ring_groups'][0]["ring_group_destinations"][$y]["destination_timeout"] = $row['destination_timeout'];
$array['ring_groups'][0]["ring_group_destinations"][$y]["destination_prompt"] = $row['destination_prompt'];
$array['ring_groups'][0]["ring_group_destinations"][$y]["destination_enabled"] = $row['destination_enabled'] ?: 'false';
$array['ring_groups'][0]["ring_group_destinations"][$y]["destination_enabled"] = $row['destination_enabled'] ?? 'false';
$array['ring_groups'][0]["ring_group_destinations"][$y]["domain_uuid"] = $domain_uuid;
}
$y++;

View File

@ -91,7 +91,7 @@
$sip_profile_uuid = $_POST["sip_profile_uuid"];
$sip_profile_name = $_POST["sip_profile_name"];
$sip_profile_hostname = $_POST["sip_profile_hostname"];
$sip_profile_enabled = $_POST["sip_profile_enabled"] ?: 'false';
$sip_profile_enabled = $_POST["sip_profile_enabled"] ?? 'false';
$sip_profile_description = $_POST["sip_profile_description"];
$sip_profile_domains = $_POST["sip_profile_domains"];
$sip_profile_settings = $_POST["sip_profile_settings"];

View File

@ -64,7 +64,7 @@
$stream_uuid = $_POST["stream_uuid"];
$stream_name = $_POST["stream_name"];
$stream_location = $_POST["stream_location"];
$stream_enabled = $_POST["stream_enabled"] ?: 'false';
$stream_enabled = $_POST["stream_enabled"] ?? 'false';
$stream_description = $_POST["stream_description"];
}

View File

@ -71,7 +71,7 @@
$var_value = trim($_POST["var_value"]);
$var_command = trim($_POST["var_command"]);
$var_hostname = trim($_POST["var_hostname"]);
$var_enabled = trim($_POST["var_enabled"] ?: 'false');
$var_enabled = trim($_POST["var_enabled"] ?? 'false');
$var_order = trim($_POST["var_order"]);
$var_description = trim($_POST["var_description"]);

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) 2008-2022
Portions created by the Initial Developer are Copyright (C) 2008-2023
the Initial Developer. All Rights Reserved.
Contributor(s):
@ -103,7 +103,7 @@
$voicemail_file = $_POST["voicemail_file"];
$voicemail_local_after_email = $_POST["voicemail_local_after_email"];
$voicemail_destination = $_POST["voicemail_destination"];
$voicemail_enabled = $_POST["voicemail_enabled"] ?: 'false';
$voicemail_enabled = $_POST["voicemail_enabled"] ?? 'false';
$voicemail_description = $_POST["voicemail_description"];
$voicemail_tutorial = $_POST["voicemail_tutorial"];
$voicemail_options_delete = $_POST["voicemail_options_delete"];

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) 2021
Portions created by the Initial Developer are Copyright (C) 2021-2023
the Initial Developer. All Rights Reserved.
*/
@ -119,7 +119,7 @@
// $array['dashboard'][$x]['dashboard_name'] = $row["dashboard_name"];
// $array['dashboard'][$x]['dashboard_path'] = $row["dashboard_path"];
// $array['dashboard'][$x]['dashboard_order'] = $row["dashboard_order"];
// $array['dashboard'][$x]['dashboard_enabled'] = $row["dashboard_enabled"] ?: 'false';
// $array['dashboard'][$x]['dashboard_enabled'] = $row["dashboard_enabled"] ?? 'false';
// $array['dashboard'][$x]['dashboard_description'] = $row["dashboard_description"];
//
// //get the dashboard groups

View File

@ -18,7 +18,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2021
Portions created by the Initial Developer are Copyright (C) 2021-2023
the Initial Developer. All Rights Reserved.
*/
@ -228,7 +228,7 @@
$dashboard_column_span = $row["dashboard_column_span"];
$dashboard_details_state = $row["dashboard_details_state"];
$dashboard_order = $row["dashboard_order"];
$dashboard_enabled = $row["dashboard_enabled"] ?: 'false';
$dashboard_enabled = $row["dashboard_enabled"] ?? 'false';
$dashboard_description = $row["dashboard_description"];
}
unset($sql, $parameters, $row);

View File

@ -85,7 +85,7 @@
$domain_setting_name = strtolower($_POST["domain_setting_name"]);
$domain_setting_value = $_POST["domain_setting_value"];
$domain_setting_order = $_POST["domain_setting_order"];
$domain_setting_enabled = strtolower($_POST["domain_setting_enabled"] ?: 'false');
$domain_setting_enabled = strtolower($_POST["domain_setting_enabled"] ?? 'false');
$domain_setting_description = $_POST["domain_setting_description"];
}

View File

@ -138,7 +138,7 @@
$contact_name_family = $_POST["contact_name_family"];
}
$group_uuid_name = $_POST["group_uuid_name"];
$user_enabled = $_POST["user_enabled"] ?: 'false';
$user_enabled = $_POST["user_enabled"] ?? 'false';
if (permission_exists('api_key')) {
$api_key = $_POST["api_key"];
}