From 27c1361fbb190d1c54ed0a0a88b92731a058871b Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Fri, 7 Sep 2012 15:12:46 -0400 Subject: [PATCH] Small refactoring to use getter instead of accessing private variable. --- airtime_mvc/application/models/Show.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/airtime_mvc/application/models/Show.php b/airtime_mvc/application/models/Show.php index 7b56569db..6a17969b0 100644 --- a/airtime_mvc/application/models/Show.php +++ b/airtime_mvc/application/models/Show.php @@ -911,7 +911,7 @@ SQL; public function getLiveStreamInfo() { $info = array(); - if ($this->_showId == null) { + if ($this->getId() == null) { return $info; } else { $ccShow = CcShowQuery::create()->findPK($this->_showId); @@ -920,7 +920,6 @@ SQL; $info['cb_custom_auth'] = $ccShow->getDbLiveStreamUsingCustomAuth(); $info['custom_username'] = $ccShow->getDbLiveStreamUser(); $info['custom_password'] = $ccShow->getDbLiveStreamPass(); - return $info; } }