fix empty alternatives bug

This commit is contained in:
Gert
2015-01-26 02:45:14 +01:00
parent ef7806b509
commit a33e2ed226

View File

@@ -97,6 +97,10 @@ class Media extends Getters
$alternatives = $medium->getAlternatives();
if (empty($alternatives)) {
continue;
}
$max = max(array_keys($alternatives));
for ($i=2; $i < $max; $i++) {