diff --git a/app/music_on_hold/music_on_hold.php b/app/music_on_hold/music_on_hold.php index b594b5764a..ad267a2651 100644 --- a/app/music_on_hold/music_on_hold.php +++ b/app/music_on_hold/music_on_hold.php @@ -87,7 +87,7 @@ $order = $_GET["order"] ?? ''; //download music on hold file - if (!empty($_GET['action']) + if (!empty($_GET['action']) && $_GET['action'] == "download" && is_uuid($_GET['id']) && !empty($streams)) { @@ -566,7 +566,7 @@ case "ogg" : $stream_file_type = "audio/ogg"; break; } //playback progress bar - echo "\n"; + echo "\n"; echo "\n"; // dummy row to maintain alternating background color $list_row_link = "javascript:recording_play('".$row_uuid."','".urlencode($stream_file)."');"; echo "\n";