CC-3658: DJ assigned to the Show can't switch/kick streams

- fixed
This commit is contained in:
James 2012-04-16 17:29:02 -04:00
parent 2f4861db26
commit c08800468f
2 changed files with 2 additions and 3 deletions

View File

@ -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";

View File

@ -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;