فهرست منبع

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
Alex 2 سال پیش
والد
کامیت
e840c9ecab
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      resources/classes/ringbacks.php

+ 2 - 2
resources/classes/ringbacks.php

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