mirror of
https://github.com/getgrav/grav.git
synced 2026-02-21 22:18:03 +01:00
fix empty alternatives bug
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user