Skip to content

Commit

Permalink
CC-3386: array access for "media_played" flag is hardcoded to 0
Browse files Browse the repository at this point in the history
-fixed
  • Loading branch information
mkonecny committed Mar 6, 2012
1 parent 463fc1f commit 0dfcb77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airtime_mvc/application/models/Schedule.php
Expand Up @@ -195,7 +195,7 @@ public static function GetPrevCurrentNext($p_timeNow)
$results['current'] = array("name"=>$row[$i]["artist_name"]." - ".$row[$i]["track_title"],
"starts"=>$row[$i]["starts"],
"ends"=>$row[$i]["ends"],
"media_item_played"=>$row[0]["media_item_played"],
"media_item_played"=>$row[$i]["media_item_played"],
"record"=>0);
if ( isset($row[$i+1])){
$results['next'] = array("name"=>$row[$i+1]["artist_name"]." - ".$row[$i+1]["track_title"],
Expand Down

0 comments on commit 0dfcb77

Please sign in to comment.