Merge branch 'devel' of dev.sourcefabric.org:airtime into devel
This commit is contained in:
commit
27e5a6db5e
2 changed files with 2 additions and 3 deletions
|
@ -50,10 +50,9 @@ class DashboardController extends Zend_Controller_Action
|
|||
$user = new Application_Model_User($userInfo->id);
|
||||
|
||||
$show = Application_Model_Show::GetCurrentShow();
|
||||
$show_id = isset($show['id'])?$show['id']:0;
|
||||
$show_id = isset($show[0]['id'])?$show[0]['id']:0;
|
||||
|
||||
$source_connected = Application_Model_Preference::GetSourceStatus($sourcename);
|
||||
|
||||
if($user->canSchedule($show_id) && ($source_connected || $sourcename == 'scheduled_play')){
|
||||
|
||||
$change_status_to = "on";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue