From e99a95a756b15028b11871c3c7350066f2751964 Mon Sep 17 00:00:00 2001 From: Stephan Bergemann Date: Tue, 12 Jun 2012 14:06:56 +0200 Subject: [PATCH] now also working for directories only containing one image --- apps/gallery/templates/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/gallery/templates/index.php b/apps/gallery/templates/index.php index 5a9aba9ea07..5cff2c65a00 100644 --- a/apps/gallery/templates/index.php +++ b/apps/gallery/templates/index.php @@ -112,7 +112,8 @@ for($i = 0; $i < count($images); $i++) { if(strcmp($prev_dir_arr[0], $dir_arr[0]) != 0) { $tl->addTile(new \OC\Pictures\TileStack($second_level_images, $prev_dir_arr[0])); $second_level_images = array(); - } else if (count($dir_arr) == 2) { // These are the pics in that subdir + } + if (count($dir_arr) == 2) { // These are the pics in that subdir $second_level_images[] = $root.$images[$i]; } // have us a little something to compare against -- 2.39.5