From: Stephan Bergemann Date: Tue, 12 Jun 2012 11:05:25 +0000 (+0200) Subject: fixed second_level_images issue X-Git-Tag: v4.5.0beta1~74^2~420^2~7^2~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4711c2bb412749100fa53d8e1684154b87846092;p=nextcloud-server.git fixed second_level_images issue --- diff --git a/apps/gallery/templates/index.php b/apps/gallery/templates/index.php index 930f80238be..5a9aba9ea07 100644 --- a/apps/gallery/templates/index.php +++ b/apps/gallery/templates/index.php @@ -109,12 +109,11 @@ for($i = 0; $i < count($images); $i++) { if(count($dir_arr) == 1) { // getting the images in this directory $root_images[] = $root.$images[$i]; } else { - if (count($dir_arr) == 2) { // These are the pics in that subdir - $second_level_images[] = $root.$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 + $second_level_images[] = $root.$images[$i]; } // have us a little something to compare against $previous_element = $images[$i];