From: Stephan Bergemann Date: Thu, 14 Jun 2012 16:02:07 +0000 (+0200) Subject: fixed one issue with last directory in structure having a lot of X-Git-Tag: v4.5.0beta1~74^2~420^2~7^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a3afd51b9401ea03a50d7555ad724a64820c8674;p=nextcloud-server.git fixed one issue with last directory in structure having a lot of subdirectories and finally some pictures --- diff --git a/apps/gallery/templates/index.php b/apps/gallery/templates/index.php index e7b7f2e187e..544875a9ef3 100644 --- a/apps/gallery/templates/index.php +++ b/apps/gallery/templates/index.php @@ -122,6 +122,11 @@ if(count($second_level_images)>0) { $tl->addTile(new \OC\Pictures\TileStack($second_level_images, $prev_dir_arr[0])); } +// if last element in the directory was a directory with no second_level_images we also don't want to miss it ... +if(count($fallback_images)>0) { + $tl->addTile(new \OC\Pictures\TileStack($fallback_images, $prev_dir_arr[0])); +} + // and finally our images actually stored in the root folder for($i = 0; $iaddTile(new \OC\Pictures\TileSingle($root_images[$i]));