Permalink
Browse files

CC-3386: array access for "media_played" flag is hardcoded to 0

-fixed
  • Loading branch information...
1 parent 463fc1f commit 0dfcb77f1acd04acbb2fe63923de1853bf14d308 @mkonecny mkonecny committed Mar 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 airtime_mvc/application/models/Schedule.php
@@ -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"],

0 comments on commit 0dfcb77

Please sign in to comment.