CC-3519: System-> Stream> Problem with Master DJ Port and DJ Port settings

- fixed a bug when master and dj port are both empty, it was returnning error
This commit is contained in:
james 2012-03-28 10:15:54 -04:00
parent 2bb9b03b19
commit ac35ba5a93
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ class Application_Form_LiveStreamingPreferences extends Zend_Form_SubForm
$master_harbor_input_port = $data['master_harbor_input_port'];
$dj_harbor_input_port = $data['dj_harbor_input_port'];
if($master_harbor_input_port == $dj_harbor_input_port){
if($master_harbor_input_port == $dj_harbor_input_port && $master_harbor_input_port != ""){
$element = $this->getElement("dj_harbor_input_port");
$element->addError("You cannot use same port as Master DJ port.");
}