Only show music on hold select if app/music_on_hold directory exists.
This commit is contained in:
parent
1a9f911009
commit
6f0631b8c4
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue