CC-1665: Scheduled stream rebroadcasting and recording
-fix right clicking in playlist builder to view metadata causing exception
This commit is contained in:
parent
d84ad78984
commit
028f6636dd
|
@ -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;
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue