diff --git a/app/call_flows/call_flow_edit.php b/app/call_flows/call_flow_edit.php index 09fc0df09a..beb2796514 100644 --- a/app/call_flows/call_flow_edit.php +++ b/app/call_flows/call_flow_edit.php @@ -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 diff --git a/app/extension_settings/extension_setting_edit.php b/app/extension_settings/extension_setting_edit.php index 4cccfed06e..dfc9c67f0a 100644 --- a/app/extension_settings/extension_setting_edit.php +++ b/app/extension_settings/extension_setting_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - 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"]; } diff --git a/app/gateways/gateway_edit.php b/app/gateways/gateway_edit.php index 524c2adab9..53c91b7ec8 100644 --- a/app/gateways/gateway_edit.php +++ b/app/gateways/gateway_edit.php @@ -110,7 +110,7 @@ $context = $_POST["context"]; $profile = $_POST["profile"]; $hostname = $_POST["hostname"]; - $enabled = $_POST["enabled"] ?: 'false'; + $enabled = $_POST["enabled"] ?? 'false'; $description = $_POST["description"]; } diff --git a/app/ivr_menus/ivr_menu_edit.php b/app/ivr_menus/ivr_menu_edit.php index a152682b6c..fb9f503c9f 100644 --- a/app/ivr_menus/ivr_menu_edit.php +++ b/app/ivr_menus/ivr_menu_edit.php @@ -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++; } } diff --git a/app/modules/module_edit.php b/app/modules/module_edit.php index 5ce87d9122..812909f1d5 100644 --- a/app/modules/module_edit.php +++ b/app/modules/module_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - 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 diff --git a/app/number_translations/number_translation_edit.php b/app/number_translations/number_translation_edit.php index 704dba9b71..4a5236692d 100644 --- a/app/number_translations/number_translation_edit.php +++ b/app/number_translations/number_translation_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - 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"]; } diff --git a/app/phrases/phrase_edit.php b/app/phrases/phrase_edit.php index 59977db49f..b1402898d9 100644 --- a/app/phrases/phrase_edit.php +++ b/app/phrases/phrase_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - 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"] ?? ''; diff --git a/app/ring_groups/ring_group_edit.php b/app/ring_groups/ring_group_edit.php index 015f1c1bc2..67f74bf8d6 100644 --- a/app/ring_groups/ring_group_edit.php +++ b/app/ring_groups/ring_group_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - 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++; diff --git a/app/sip_profiles/sip_profile_edit.php b/app/sip_profiles/sip_profile_edit.php index 38240674dc..800a5c04c3 100644 --- a/app/sip_profiles/sip_profile_edit.php +++ b/app/sip_profiles/sip_profile_edit.php @@ -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"]; diff --git a/app/streams/stream_edit.php b/app/streams/stream_edit.php index c52113036c..14d06c3891 100644 --- a/app/streams/stream_edit.php +++ b/app/streams/stream_edit.php @@ -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"]; } diff --git a/app/vars/var_edit.php b/app/vars/var_edit.php index 6ba4832d62..13f9cec1b5 100644 --- a/app/vars/var_edit.php +++ b/app/vars/var_edit.php @@ -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"]); diff --git a/app/voicemails/voicemail_edit.php b/app/voicemails/voicemail_edit.php index 0e3159c5df..c5301cada3 100644 --- a/app/voicemails/voicemail_edit.php +++ b/app/voicemails/voicemail_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - 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"]; diff --git a/core/dashboard/dashboard.php b/core/dashboard/dashboard.php index 92eff0ecdf..f92c76d9a4 100644 --- a/core/dashboard/dashboard.php +++ b/core/dashboard/dashboard.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - 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 diff --git a/core/dashboard/dashboard_edit.php b/core/dashboard/dashboard_edit.php index eea107c71e..0cbae8b8df 100644 --- a/core/dashboard/dashboard_edit.php +++ b/core/dashboard/dashboard_edit.php @@ -18,7 +18,7 @@ The Initial Developer of the Original Code is Mark J Crane - 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); diff --git a/core/domain_settings/domain_setting_edit.php b/core/domain_settings/domain_setting_edit.php index 576caf6531..27e23d34e8 100644 --- a/core/domain_settings/domain_setting_edit.php +++ b/core/domain_settings/domain_setting_edit.php @@ -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"]; } diff --git a/core/users/user_edit.php b/core/users/user_edit.php index 3045c3b240..1bdaac38be 100644 --- a/core/users/user_edit.php +++ b/core/users/user_edit.php @@ -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"]; }