diff --git a/app/music_on_hold/music_on_hold.php b/app/music_on_hold/music_on_hold.php
index c34fd39c34..c31dbbebe2 100644
--- a/app/music_on_hold/music_on_hold.php
+++ b/app/music_on_hold/music_on_hold.php
@@ -444,6 +444,7 @@
$previous_name = '';
//loop through the array
+ $x = 0;
foreach ($streams as $row) {
//set the variables
@@ -521,7 +522,6 @@
//list the stream files
if (is_array($stream_files) && @sizeof($stream_files) != 0) {
- $x = 0;
foreach ($stream_files as $stream_file_path) {
$row_uuid = uuid();
$stream_file = pathinfo($stream_file_path, PATHINFO_BASENAME);
@@ -546,9 +546,8 @@
}
echo "
".escape($stream_file)." | \n";
echo " ";
- echo "";
+ echo "";
echo button::create(['type'=>'button','title'=>$text['label-play'].' / '.$text['label-pause'],'icon'=>$_SESSION['theme']['button_icon_play'],'id'=>'recording_button_'.$row_uuid,'onclick'=>"recording_play('".$row_uuid."');"]);
- //echo button::create(['type'=>'button','title'=>$text['label-stop'],'icon'=>$_SESSION['theme']['button_icon_stop'],'onclick'=>"recording_stop('".$row_uuid."'); this.blur(); return false;"]);
echo button::create(['type'=>'button','title'=>$text['label-download'],'icon'=>$_SESSION['theme']['button_icon_download'],'link'=>"?action=download&id=".urlencode($row['music_on_hold_uuid'])."&file=".urlencode($stream_file)]);
echo " | \n";
echo " ".escape($stream_file_size)." | \n";