cc-2344: wrong song displayed

-fixed #2
This commit is contained in:
martin 2011-06-03 17:03:11 -04:00
parent c9c9ecf2cd
commit e69f9497ed
2 changed files with 9 additions and 11 deletions

View file

@ -10,8 +10,7 @@ class Application_Model_Dashboard
//name. Else return the last item from the schedule.
$showInstance = ShowInstance::GetLastShowInstance($p_timeNow);
$instanceId = $showInstance->getShowId();
$row = Schedule::GetLastScheduleItem($p_timeNow, $instanceId);
$row = Schedule::GetLastScheduleItem($p_timeNow);
if (is_null($showInstance)){
if (count($row) == 0){
@ -48,10 +47,12 @@ class Application_Model_Dashboard
//after the last item in the schedule table, then return the show's
//name. Else return the last item from the schedule.
$row = array();
$showInstance = ShowInstance::GetCurrentShowInstance($p_timeNow);
$instanceId = $showInstance->getShowId();
$row = Schedule::GetCurrentScheduleItem($p_timeNow, $instanceId);
if (!is_null($showInstance)){
$instanceId = $showInstance->getShowInstanceId();
$row = Schedule::GetCurrentScheduleItem($p_timeNow, $instanceId);
}
if (is_null($showInstance)){
if (count($row) == 0){
return null;
@ -84,8 +85,7 @@ class Application_Model_Dashboard
//name. Else return the last item from the schedule.
$showInstance = ShowInstance::GetNextShowInstance($p_timeNow);
$instanceId = $showInstance->getShowId();
$row = Schedule::GetNextScheduleItem($p_timeNow, $instanceId);
$row = Schedule::GetNextScheduleItem($p_timeNow);
if (is_null($showInstance)){
if (count($row) == 0){