removed useless code
This commit is contained in:
parent
1d758db42b
commit
f660e1da9f
airtime_mvc/application/models
|
@ -356,9 +356,9 @@ SQL;
|
||||||
." SET media_item_played=TRUE";
|
." SET media_item_played=TRUE";
|
||||||
// we need to update 'broadcasted' column as well
|
// we need to update 'broadcasted' column as well
|
||||||
// check the current switch status
|
// check the current switch status
|
||||||
$live_dj = Application_Model_Preference::GetSourceSwitchStatus('live_dj') == 'on'?true:false;
|
$live_dj = Application_Model_Preference::GetSourceSwitchStatus('live_dj') == 'on';
|
||||||
$master_dj = Application_Model_Preference::GetSourceSwitchStatus('master_dj') == 'on'?true:false;
|
$master_dj = Application_Model_Preference::GetSourceSwitchStatus('master_dj') == 'on';
|
||||||
$scheduled_play = Application_Model_Preference::GetSourceSwitchStatus('scheduled_play') == 'on'?true:false;
|
$scheduled_play = Application_Model_Preference::GetSourceSwitchStatus('scheduled_play') == 'on';
|
||||||
|
|
||||||
if (!$live_dj && !$master_dj && $scheduled_play) {
|
if (!$live_dj && !$master_dj && $scheduled_play) {
|
||||||
$sql .= ", broadcasted=1";
|
$sql .= ", broadcasted=1";
|
||||||
|
|
|
@ -475,10 +475,9 @@ class Application_Model_Show
|
||||||
->filterByDbShowId($this->_showId)
|
->filterByDbShowId($this->_showId)
|
||||||
->findOne();
|
->findOne();
|
||||||
|
|
||||||
if (!is_null($showDaysRow)) {
|
if (!is_null($showDaysRow))
|
||||||
return $showDaysRow->getDbRepeatType();
|
return $showDaysRow->getDbRepeatType();
|
||||||
} else
|
else
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue