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
16 changed files with 27 additions and 27 deletions
+1 -1
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
@@ -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"];
}
+1 -1
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"];
}
+2 -2
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++;
}
}
+3 -3
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
@@ -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"];
}
+2 -2
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"] ?? '';
+3 -3
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++;
+1 -1
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"];
+1 -1
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"];
}
+1 -1
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"]);
+2 -2
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"];