Skip to content

Commit

Permalink
Fixed call broadcast and call block php 8.1 errors (#6750)
Browse files Browse the repository at this point in the history
* Update call_block_edit.php

* Update call_broadcast_send.php

* Update call_broadcast_send.php
  • Loading branch information
alexdcrane committed Jun 9, 2023
1 parent 8b982dd commit 777b56a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/call_block/call_block_edit.php
Expand Up @@ -102,7 +102,7 @@
}
break;
case 'add':
$xml_cdrs = $_POST['xml_cdrs'];
$xml_cdrs = $_POST['xml_cdrs'] ?? null;
if (!empty($xml_cdrs) && permission_exists('call_block_add')) {
$obj = new call_block;
$obj->call_block_direction = $call_block_direction;
Expand Down
16 changes: 8 additions & 8 deletions app/call_broadcast/call_broadcast_send.php
Expand Up @@ -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) {
Expand All @@ -68,12 +68,12 @@ function cmd_async($cmd) {
}

//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 ";
Expand All @@ -88,7 +88,7 @@ function cmd_async($cmd) {
$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"];
Expand Down

0 comments on commit 777b56a

Please sign in to comment.