CC-1665: Scheduled stream rebroadcasting and recording

-fix right clicking in playlist builder to view metadata causing exception
This commit is contained in:
Martin Konecny 2012-08-10 14:37:32 -04:00
parent d84ad78984
commit 028f6636dd
2 changed files with 3 additions and 5 deletions

View File

@ -333,11 +333,10 @@ class LibraryController extends Zend_Controller_Action
}
$this->view->block = $block;
} else if ($type == "stream") {
$webstream = CcWebstreamQuery::create()->findPK($id);
$file = new Application_Model_Webstream($webstream);
$ws = new Application_Model_Webstream($webstream);
$md = $file->getMetadata();
$md = $ws->getMetadata();
$this->view->md = $md;
$this->view->type = $type;

View File

@ -53,8 +53,7 @@ class Application_Model_Webstream{
public function getMetadata()
{
$webstream = CcWebstreamQuery::create()->findPK($this->id);
$subjs = CcSubjsQuery::create()->findPK($webstream->getDbCreatorId());
$subjs = CcSubjsQuery::create()->findPK($this->webstream->getDbCreatorId());
$username = $subjs->getDbLogin();
return array(