CC-3658: DJ assigned to the Show can't switch/kick streams
- fixed
This commit is contained in:
parent
2f4861db26
commit
c08800468f
|
@ -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";
|
||||
|
|
|
@ -18,7 +18,7 @@ class Logging {
|
|||
}
|
||||
|
||||
public static function toString($p_msg){
|
||||
if (is_array($p_msg)){
|
||||
if (is_array($p_msg) || is_object($p_msg)){
|
||||
return print_r($p_msg, true);
|
||||
} else {
|
||||
return $p_msg;
|
||||
|
|
Loading…
Reference in New Issue