remove instances where a pointer is used in a foreach loop for value (#7108)

This commit is contained in:
frytimo
2024-08-22 12:41:10 -06:00
committed by GitHub
parent 0583c5b429
commit 2cbb4dbc31
73 changed files with 170 additions and 170 deletions
@@ -248,7 +248,7 @@
//add the voicemail messages to the array
if (is_array($voicemails)) {
foreach ($voicemails as &$row) {
foreach ($voicemails as $row) {
//get the voicemail messages
$row['messages'] = $this->voicemail_messages($row['voicemail_id']);
}
@@ -310,7 +310,7 @@
//update the array with additional information
if (is_array($result)) {
foreach($result as &$row) {
foreach ($result as $row) {
//set the greeting directory
$path = $this->settings->get('switch', 'voicemail', '/var/lib/freeswitch/storage').'/default/'.$_SESSION['domain_name'].'/'.$row['voicemail_id'];
if (file_exists($path.'/msg_'.$row['voicemail_message_uuid'].'.wav')) {