Fixed call broadcast and call block php 8.1 errors (#6750)

* Update call_block_edit.php

* Update call_broadcast_send.php

* Update call_broadcast_send.php
This commit is contained in:
Alex
2023-06-09 15:01:46 -06:00
committed by GitHub
parent 8b982dd6e3
commit 777b56ae9a
2 changed files with 9 additions and 9 deletions

View File

@@ -47,7 +47,7 @@
$text = $language->get();
//set the max execution time to 1 hour
ini_set(max_execution_time,3600);
ini_set('max_execution_time',3600);
//define the asynchronous command function
function cmd_async($cmd) {
@@ -68,12 +68,12 @@
}
//get the http get values and set as php variables
$group_name = $_GET["group_name"];
$call_broadcast_uuid = $_GET["id"];
$user_category = $_GET["user_category"];
$gateway = $_GET["gateway"];
$phonetype1 = $_GET["phonetype1"];
$phonetype2 = $_GET["phonetype2"];
$group_name = $_GET["group_name"] ?? '';
$call_broadcast_uuid = $_GET["id"] ?? '';
$user_category = $_GET["user_category"] ?? '';
$gateway = $_GET["gateway"] ?? '';
$phonetype1 = $_GET["phonetype1"] ?? '';
$phonetype2 = $_GET["phonetype2"] ?? '';
//get the call broadcast details from the database
$sql = "select * from v_call_broadcasts ";
@@ -88,7 +88,7 @@
$broadcast_start_time = $row["broadcast_start_time"];
$broadcast_timeout = $row["broadcast_timeout"];
$broadcast_concurrent_limit = $row["broadcast_concurrent_limit"];
$recordingid = $row["recordingid"];
$recordingid = $row["recordingid"] ?? '';
$broadcast_caller_id_name = $row["broadcast_caller_id_name"];
$broadcast_caller_id_number = $row["broadcast_caller_id_number"];
$broadcast_destination_type = $row["broadcast_destination_type"];