more php 8.1 changes (#6734)

* Update ivr_menu_edit.php

* Update ringbacks.php

* Update call_block_edit.php

* Update call_broadcast.php

* Update call_broadcast_edit.php

* Update call_center_queue_edit.php

* Update call_center_queue_edit.php

* Update call_center_agent_status.php

* Update call_center_queue_edit.php

* Update call_center_agent_edit.php

* Update call_center_queues.php

* Update call_flow_edit.php

* Update call_broadcast.php

* Update call_forward.php

* Update call_broadcast_send.php

* Update conference_rooms.php

* Update conference_centers.php

* Update conference_control_edit.php

* Update conference_control_details.php

* Update conference_profile_edit.php

* Update conference_profile_param_edit.php

* Update conference_profile_edit.php

* Update database_transaction_edit.php

* Update database_transactions.php
This commit is contained in:
Alex
2023-06-01 16:39:05 -06:00
committed by GitHub
parent 9c650a29b1
commit d6b73cf296
20 changed files with 171 additions and 121 deletions

View File

@@ -63,7 +63,7 @@ if (!class_exists('ringbacks')) {
$ringtones_list[$ringtone] = $label;
}
}
$this->ringtones_list = $ringtones_list;
$this->ringtones_list = $ringtones_list ?? '';
unset($sql, $ringtones, $ringtone, $ringtones_list);
//get the default_ringback label
@@ -146,7 +146,7 @@ if (!class_exists('ringbacks')) {
$parameters['domain_uuid'] = $this->domain_uuid;
$database = new database;
$streams = $database->select($sql, $parameters, 'all');
if (is_array($streams) && @sizeof($streams) != 0) {
if (!empty($streams)) {
$select .= " <optgroup label='".$text['label-streams']."'>";
foreach ($streams as $row) {
$select .= " <option value='".$row['stream_location']."' ".(($selected == $row['stream_location']) ? 'selected="selected"' : null).">".$row['stream_name']."</option>\n";