Small refactoring to use getter instead of accessing private variable.

This commit is contained in:
Rudi Grinberg 2012-09-07 15:12:46 -04:00
parent 49a85afc06
commit 27c1361fbb

View file

@ -911,7 +911,7 @@ SQL;
public function getLiveStreamInfo() public function getLiveStreamInfo()
{ {
$info = array(); $info = array();
if ($this->_showId == null) { if ($this->getId() == null) {
return $info; return $info;
} else { } else {
$ccShow = CcShowQuery::create()->findPK($this->_showId); $ccShow = CcShowQuery::create()->findPK($this->_showId);
@ -920,7 +920,6 @@ SQL;
$info['cb_custom_auth'] = $ccShow->getDbLiveStreamUsingCustomAuth(); $info['cb_custom_auth'] = $ccShow->getDbLiveStreamUsingCustomAuth();
$info['custom_username'] = $ccShow->getDbLiveStreamUser(); $info['custom_username'] = $ccShow->getDbLiveStreamUser();
$info['custom_password'] = $ccShow->getDbLiveStreamPass(); $info['custom_password'] = $ccShow->getDbLiveStreamPass();
return $info; return $info;
} }
} }