Update extension_edit.php

Use a slightly more elegant approach from the master branch.
This commit is contained in:
FusionPBX
2017-01-18 10:42:21 -07:00
committed by GitHub
parent 7b47ee638c
commit a579f82192

View File

@@ -1806,8 +1806,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
echo "</td>\n";
echo "<td width=\"70%\" class='vtable' align='left'>\n";
require_once "app/music_on_hold/resources/classes/switch_music_on_hold.php";
$options = '';
$moh = new switch_music_on_hold;
echo $moh->select('hold_music', $hold_music, '');
echo $moh->select('hold_music', $hold_music, $options);
echo " <br />\n";
echo $text['description-hold_music']."\n";
echo "</td>\n";