CC-2745: Show status of liquidsoap/icecast connection on Stream Settings page

- fixed a case where it was displaying "OK" when liquidsoap was not running
This commit is contained in:
James 2011-10-23 06:29:06 -04:00
parent fb8735588d
commit f2bf92297a
3 changed files with 4 additions and 3 deletions

View file

@ -108,10 +108,11 @@ class Application_Model_StreamSetting {
public static function getStreamEnabled($stream_id){
global $CC_DBC;
$keyname = "s".$stream_id."_ouput";
$keyname = "s".$stream_id."_output";
$sql = "SELECT value FROM cc_stream_setting"
." WHERE keyname = '$keyname'";
$result = $CC_DBC->GetOne($sql);
if($result == 'disabled'){
$result = false;
}else{