diff --git a/app/basic_operator_panel/resources/classes/basic_operator_panel.php b/app/basic_operator_panel/resources/classes/basic_operator_panel.php index bcbff94eb6..234726fb46 100644 --- a/app/basic_operator_panel/resources/classes/basic_operator_panel.php +++ b/app/basic_operator_panel/resources/classes/basic_operator_panel.php @@ -77,7 +77,7 @@ if (!class_exists('basic_operator_panel')) { //store extension status by user uuid if (isset($extensions)) { - foreach($extensions as &$row) { + foreach ($extensions as $row) { if ($row['user_uuid'] != '') { $ext_user_status[$row['user_uuid']] = $row['user_status']; unset($row['user_status']); @@ -97,7 +97,7 @@ if (!class_exists('basic_operator_panel')) { //build the response $x = 0; if (isset($extensions)) { - foreach($extensions as &$row) { + foreach ($extensions as $row) { $user = $row['extension']; if (!empty($row['number_alias'])) { $user = $row['number_alias']; @@ -143,7 +143,7 @@ if (!class_exists('basic_operator_panel')) { //add the active call details $found = false; if (isset($json_array['rows'])) { - foreach($json_array['rows'] as &$field) { + foreach ($json_array['rows'] as $field) { $presence_id = $field['presence_id']; $presence = explode("@", $presence_id); $presence_id = $presence[0]; diff --git a/app/call_block/call_block_edit.php b/app/call_block/call_block_edit.php index a46c8deb41..73e010a900 100644 --- a/app/call_block/call_block_edit.php +++ b/app/call_block/call_block_edit.php @@ -491,7 +491,7 @@ if (permission_exists('call_block_all') || permission_exists('call_block_ring_gr if (permission_exists('call_block_extension')) { if (!empty($extensions)) { echo " \n"; - foreach ($extensions as &$row) { + foreach ($extensions as $row) { $selected = ($call_block_app == 'extension' && $call_block_data == $row['extension']) ? "selected='selected'" : null; echo " \n"; } @@ -501,7 +501,7 @@ if (permission_exists('call_block_all') || permission_exists('call_block_ring_gr if (permission_exists('call_block_ivr')) { if (!empty($ivrs)) { echo " \n"; - foreach ($ivrs as &$row) { + foreach ($ivrs as $row) { $selected = ($call_block_app == 'ivr' && $call_block_data == $row['ivr_menu_extension']) ? "selected='selected'" : null; echo " \n"; } @@ -511,7 +511,7 @@ if (permission_exists('call_block_all') || permission_exists('call_block_ring_gr if (permission_exists('call_block_ring_group')) { if (!empty($ring_groups)) { echo " \n"; - foreach ($ring_groups as &$row) { + foreach ($ring_groups as $row) { $selected = ($call_block_app == 'ring_group' && $call_block_data == $row['ring_group_extension']) ? "selected='selected'" : null; echo " \n"; } @@ -521,7 +521,7 @@ if (permission_exists('call_block_all') || permission_exists('call_block_ring_gr if (permission_exists('call_block_voicemail')) { if (!empty($voicemails)) { echo " \n"; - foreach ($voicemails as &$row) { + foreach ($voicemails as $row) { $selected = ($call_block_app == 'voicemail' && $call_block_data == $row['voicemail_id']) ? "selected='selected'" : null; echo " \n"; } diff --git a/app/call_centers/app_defaults.php b/app/call_centers/app_defaults.php index 74d82b1fa3..7cd7080c2b 100644 --- a/app/call_centers/app_defaults.php +++ b/app/call_centers/app_defaults.php @@ -45,7 +45,7 @@ if ($domains_processed == 1) { $sql .= "and (t.call_center_queue_uuid is null or t.call_center_agent_uuid is null) "; $tiers = $database->select($sql, null, 'all'); if (!empty($tiers)) { - foreach ($tiers as $index => &$row) { + foreach ($tiers as $index => $row) { if ($row['call_center_queue_uuid'] == null && $row['queue_uuid'] != null) { $array['call_center_tiers'][$index]['call_center_queue_uuid'] = $row['queue_uuid']; } diff --git a/app/call_centers/call_center_queue_edit.php b/app/call_centers/call_center_queue_edit.php index c2753e29c7..f4b56d71e9 100644 --- a/app/call_centers/call_center_queue_edit.php +++ b/app/call_centers/call_center_queue_edit.php @@ -154,7 +154,7 @@ unset($sql, $parameters); if (!empty($tiers)) { - foreach ($tiers as &$row) { + foreach ($tiers as $row) { $call_center_agent_uuid = $row["call_center_agent_uuid"]; $call_center_queue_uuid = $row["call_center_queue_uuid"]; $queue_extension = $row["queue_extension"]; @@ -543,7 +543,7 @@ unset($sql, $parameters); if (!empty($call_center_queues)) { - foreach ($call_center_queues as &$row) { + foreach ($call_center_queues as $row) { $queue_name = $row["queue_name"]; $dialplan_uuid = $row["dialplan_uuid"]; $database_queue_name = $row["queue_name"]; diff --git a/app/call_forward/call_forward_edit.php b/app/call_forward/call_forward_edit.php index 31d2b28c25..cbd7ba4709 100644 --- a/app/call_forward/call_forward_edit.php +++ b/app/call_forward/call_forward_edit.php @@ -468,7 +468,7 @@ $result = $database->select($sql, $parameters, 'all'); unset($destinations); - foreach ($result as $x => &$row) { + foreach ($result as $x => $row) { $destinations[$x]['uuid'] = $row["follow_me_destination_uuid"]; $destinations[$x]['destination'] = $row["follow_me_destination"]; $destinations[$x]['delay'] = $row["follow_me_delay"]; @@ -510,7 +510,7 @@ echo "