Only show music on hold select if app/music_on_hold directory exists.

This commit is contained in:
Mark Crane 2014-03-04 05:41:28 +00:00
parent c60ad7b87b
commit ae7f672025
1 changed files with 16 additions and 14 deletions

View File

@ -1441,6 +1441,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "</td>\n";
echo "</tr>\n";
if (is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/music_on_hold')) {
echo "<tr>\n";
echo "<td width=\"30%\" class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-hold_music'].":\n";
@ -1455,6 +1456,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo $text['description-hold_music']."\n";
echo "</td>\n";
echo "</tr>\n";
}
if (if_group("superadmin")) {
if (strlen($user_context) == 0) {