Update switch_music_on_hold.php

Sometimes we don't want to set music on hold on the extension level.
This commit is contained in:
FusionPBX 2017-11-21 20:22:48 -07:00 committed by GitHub
parent 8314a08984
commit 0939acf79c
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ include "root.php";
//music on hold //music on hold
$music_list = $this->get(); $music_list = $this->get();
if (count($music_list) > 0) { if (count($music_list) > 0) {
$select .= " <optgroup value=''>\n";
$select .= " <optgroup label='".$text['label-music_on_hold']."'>\n"; $select .= " <optgroup label='".$text['label-music_on_hold']."'>\n";
$previous_name = ''; $previous_name = '';
foreach($music_list as $row) { foreach($music_list as $row) {