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;
|
$this->view->block = $block;
|
||||||
} else if ($type == "stream") {
|
} else if ($type == "stream") {
|
||||||
|
|
||||||
$webstream = CcWebstreamQuery::create()->findPK($id);
|
$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->md = $md;
|
||||||
$this->view->type = $type;
|
$this->view->type = $type;
|
||||||
|
|
|
@ -53,8 +53,7 @@ class Application_Model_Webstream{
|
||||||
|
|
||||||
public function getMetadata()
|
public function getMetadata()
|
||||||
{
|
{
|
||||||
$webstream = CcWebstreamQuery::create()->findPK($this->id);
|
$subjs = CcSubjsQuery::create()->findPK($this->webstream->getDbCreatorId());
|
||||||
$subjs = CcSubjsQuery::create()->findPK($webstream->getDbCreatorId());
|
|
||||||
|
|
||||||
$username = $subjs->getDbLogin();
|
$username = $subjs->getDbLogin();
|
||||||
return array(
|
return array(
|
||||||
|
|
Loading…
Reference in New Issue