Prevent more PHP warnings (#7609)

* Prevent more PHP warnings

* Update call_broadcast_edit.php

* Update call_center_agent_edit.php

* Update call_flow_edit.php

* Update call_center_queue_edit.php

* Update conference_center_edit.php

* Update conference_room_edit.php

* Update conference_control_detail_edit.php

* Update conference_control_edit.php

* Update conference_profile_edit.php

* Update conference_edit.php

* Update conference_profile_param_edit.php

* Update destination_edit.php

* Update device_edit.php

* Update dialplan_inbound_add.php

* Update dialplan_outbound_add.php

* Update dialplan_add.php

* Update dialplan_edit.php

* Update event_guard_logs.php

* Update extension_setting_edit.php

* Update extension_edit.php

* Update fax_edit.php

* Update fifo_edit.php

* Update ivr_menu_edit.php

* Update phrase_edit.php

* Update ring_group_edit.php

* Update sip_profile_edit.php

* Update stream_edit.php

* Update time_condition_edit.php

* Update var_edit.php

* Update voicemail_edit.php

* Update xml_cdr_search.php

* Update dashboard_widget_edit.php

* Update domain_edit.php

* Update group_edit.php

* Update user_edit.php

* Update gateway_edit.php
This commit is contained in:
Alex
2025-11-11 13:39:51 -07:00
committed by markjcrane
parent 69db088925
commit 987c6f7cb8
37 changed files with 146 additions and 64 deletions

View File

@@ -56,6 +56,8 @@
$widget_label_background_color_hover = '';
$widget_number_text_color = '';
$widget_number_background_color = '';
$widget_background_gradient_style = '';
$widget_background_gradient_angle = 0;
$widget_column_span = '';
$widget_row_span = '';
$widget_details_state = '';
@@ -102,7 +104,7 @@
$widget_background_color_hover = $_POST["widget_background_color_hover"] ?? '';
$widget_detail_background_color = $_POST["widget_detail_background_color"] ?? '';
$widget_background_gradient_style = $_POST["widget_background_gradient_style"] ?? 'mirror';
$widget_background_gradient_angle = $_POST["widget_background_gradient_angle"] ?? '90';
$widget_background_gradient_angle = $_POST["widget_background_gradient_angle"] ?? '0';
$widget_column_span = $_POST["widget_column_span"] ?? '';
$widget_row_span = $_POST["widget_row_span"] ?? '';
$widget_details_state = $_POST["widget_details_state"] ?? '';

View File

@@ -529,6 +529,9 @@
unset($sql, $parameters, $row);
}
//set the defaults
$domain_enabled = $domain_enabled ?? true;
//create token
$object = new token;
$token = $object->create($_SERVER['PHP_SELF']);

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-2023
Portions created by the Initial Developer are Copyright (C) 2018-2025
the Initial Developer. All Rights Reserved.
Contributor(s):
@@ -180,6 +180,9 @@
unset ($sql, $parameters, $row);
}
//set the defaults
$group_protected = $group_protected ?? true;
//create token
$object = new token;
$token = $object->create($_SERVER['PHP_SELF']);

View File

@@ -681,6 +681,9 @@
//set the defaults
if (empty($user_totp_secret)) { $user_totp_secret = ""; }
$user_status = $user_status ?? '';
$user_type = $user_type ?? 'default';
$user_enabled = $user_enabled ?? true;
//create token
$object = new token;