fixed handling of fallback_images
This commit is contained in:
parent
a3afd51b94
commit
4eb0c270aa
|
@ -109,8 +109,11 @@ for($i = 0; $i < count($images); $i++) {
|
||||||
}
|
}
|
||||||
if (count($dir_arr) == 2) { // These are the pics in our current subdir
|
if (count($dir_arr) == 2) { // These are the pics in our current subdir
|
||||||
$second_level_images[] = $root.$images[$i];
|
$second_level_images[] = $root.$images[$i];
|
||||||
|
$fallback_images = array();
|
||||||
} else { // These are images from the deeper directories
|
} else { // These are images from the deeper directories
|
||||||
$fallback_images[] = $root.$images[$i];
|
if(count($second_level_images) == 0) {
|
||||||
|
$fallback_images[] = $root.$images[$i];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// have us a little something to compare against
|
// have us a little something to compare against
|
||||||
$previous_element = $images[$i];
|
$previous_element = $images[$i];
|
||||||
|
|
Loading…
Reference in New Issue