diff options
author | Stephan Bergemann <st.bergemann@htw-berlin.de> | 2012-06-12 13:05:25 +0200 |
---|---|---|
committer | Stephan Bergemann <st.bergemann@htw-berlin.de> | 2012-06-14 01:27:26 +0200 |
commit | 4711c2bb412749100fa53d8e1684154b87846092 (patch) | |
tree | 0d8bb350b345d7b953a6aa6efb82b09620e66fcd /apps/gallery/templates | |
parent | e4278574a8806b4748d132adb5f29fb61e6c6058 (diff) | |
download | nextcloud-server-4711c2bb412749100fa53d8e1684154b87846092.tar.gz nextcloud-server-4711c2bb412749100fa53d8e1684154b87846092.zip |
fixed second_level_images issue
Diffstat (limited to 'apps/gallery/templates')
-rw-r--r-- | apps/gallery/templates/index.php | 5 |
1 files changed, 2 insertions, 3 deletions
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]; |