Update music_on_hold.php

Fix the display for the rate or default in music on hold.
This commit is contained in:
FusionPBX
2016-07-02 09:22:40 -06:00
committed by GitHub
parent 70bcfcffa6
commit 9155fdf519

View File

@@ -606,9 +606,17 @@
}
}
//set the rate label
if ($auto_rate) {
$stream_details = $text['option-default'].' '.$icons;
}
else {
$stream_details = ($music_on_hold_rate/1000).' kHz / '.$icons;
}
//show the table header
echo " <tr>\n";
echo " <th class='listhdr'>".(($auto_rate) ? ($music_on_hold_rate/1000).' kHz / '.$text['option-default'] : ($music_on_hold_rate/1000)." kHz").$icons."</th>\n";
echo " <th class='listhdr'>".$stream_details."</th>\n";
echo " <th class='listhdr' style='width: 55px;'>".$text['label-tools']."</th>\n";
echo " <th class='listhdr' style='width: 65px; text-align: right; white-space: nowrap;'>".$text['label-file-size']."</th>\n";
echo " <th class='listhdr' style='width: 150px; text-align: right;'>".$text['label-uploaded']."</th>\n";