* Seri-o-meter - Fixed issue with non-numeric season keys - Improved "Life on Mars" logo - Added "Odyssey 5" with suitable font - General update
/trunk/media/video/series/index.php |
---|
46,10 → 46,18 |
$serie['season_ranges'] = array(); |
foreach ($serie['seasons'] as $season_key => $season_length) |
{ |
$serie['season_ranges'][$season_key + 1] = array($episode_count, $episode_count + $season_length - 1); |
if (is_int($season_key)) |
{ |
$serie['season_ranges'][$season_key + 1] = array($episode_count, $episode_count + $season_length - 1); |
} |
$episode_count += $season_length; |
} |
} |
else |
{ |
$serie['total'] = max(array_keys($serie['episodes'])); |
} |
$serie['percentage'] = 0; |
if ($serie['total'] > 0) |