php 8.1 changes (#6721)
* Update call_flows.php * Update call_flow_edit.php * Update call_forward.php * Update call_forward_edit.php * Update call_recordings.php * Update conference_centers.php * Update default_settings.php * Update default_setting_edit.php * Update access_controls.php * Update number_translations.php * Update number_translation_edit.php * Update setting_edit.php * Update bridges.php * Update bridge_edit.php * Update call_broadcast_edit.php * Update call_broadcast.php * Update call_block.php * Update call_broadcast_edit.php * Update call_center_agent_edit.php * Update call_center_agent_status.php * Update call_recordings.php
This commit is contained in:
@@ -49,13 +49,13 @@
|
||||
//get the number of rows in v_extensions
|
||||
$sql = " select count(*) from v_settings ";
|
||||
$database = new database;
|
||||
$num_rows = $database->select($sql, $parameters ?? '', 'column');
|
||||
$num_rows = $database->select($sql, $parameters ?? null, 'column');
|
||||
|
||||
//set the action
|
||||
$action = $num_rows == 0 ? "add" : "update";
|
||||
|
||||
//get the http values and set them as php variables
|
||||
if (count($_POST)>0) {
|
||||
if (!empty($_POST)) {
|
||||
//$numbering_plan = $_POST["numbering_plan"];
|
||||
//$default_gateway = $_POST["default_gateway"];
|
||||
$setting_uuid = $_POST["setting_uuid"];
|
||||
@@ -73,7 +73,7 @@
|
||||
$mod_shout_volume = $_POST["mod_shout_volume"];
|
||||
}
|
||||
|
||||
if (count($_POST)>0 && empty($_POST["persistformvar"])) {
|
||||
if (!empty($_POST) && empty($_POST["persistformvar"])) {
|
||||
|
||||
//check for all required data
|
||||
$msg = '';
|
||||
|
||||
Reference in New Issue
Block a user