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

@@ -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;