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:
@@ -102,7 +102,7 @@
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'add':
|
case 'add':
|
||||||
$xml_cdrs = $_POST['xml_cdrs'];
|
$xml_cdrs = $_POST['xml_cdrs'] ?? null;
|
||||||
if (!empty($xml_cdrs) && permission_exists('call_block_add')) {
|
if (!empty($xml_cdrs) && permission_exists('call_block_add')) {
|
||||||
$obj = new call_block;
|
$obj = new call_block;
|
||||||
$obj->call_block_direction = $call_block_direction;
|
$obj->call_block_direction = $call_block_direction;
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
$text = $language->get();
|
$text = $language->get();
|
||||||
|
|
||||||
//set the max execution time to 1 hour
|
//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
|
//define the asynchronous command function
|
||||||
function cmd_async($cmd) {
|
function cmd_async($cmd) {
|
||||||
@@ -68,12 +68,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//get the http get values and set as php variables
|
//get the http get values and set as php variables
|
||||||
$group_name = $_GET["group_name"];
|
$group_name = $_GET["group_name"] ?? '';
|
||||||
$call_broadcast_uuid = $_GET["id"];
|
$call_broadcast_uuid = $_GET["id"] ?? '';
|
||||||
$user_category = $_GET["user_category"];
|
$user_category = $_GET["user_category"] ?? '';
|
||||||
$gateway = $_GET["gateway"];
|
$gateway = $_GET["gateway"] ?? '';
|
||||||
$phonetype1 = $_GET["phonetype1"];
|
$phonetype1 = $_GET["phonetype1"] ?? '';
|
||||||
$phonetype2 = $_GET["phonetype2"];
|
$phonetype2 = $_GET["phonetype2"] ?? '';
|
||||||
|
|
||||||
//get the call broadcast details from the database
|
//get the call broadcast details from the database
|
||||||
$sql = "select * from v_call_broadcasts ";
|
$sql = "select * from v_call_broadcasts ";
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
$broadcast_start_time = $row["broadcast_start_time"];
|
$broadcast_start_time = $row["broadcast_start_time"];
|
||||||
$broadcast_timeout = $row["broadcast_timeout"];
|
$broadcast_timeout = $row["broadcast_timeout"];
|
||||||
$broadcast_concurrent_limit = $row["broadcast_concurrent_limit"];
|
$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_name = $row["broadcast_caller_id_name"];
|
||||||
$broadcast_caller_id_number = $row["broadcast_caller_id_number"];
|
$broadcast_caller_id_number = $row["broadcast_caller_id_number"];
|
||||||
$broadcast_destination_type = $row["broadcast_destination_type"];
|
$broadcast_destination_type = $row["broadcast_destination_type"];
|
||||||
|
|||||||
Reference in New Issue
Block a user