fixed bug #996: first picture in folder is repeated in the last position behaving like a directory
This commit is contained in:
parent
d28a4f0638
commit
6468e0a1d5
1 changed files with 2 additions and 4 deletions
|
@ -101,10 +101,8 @@ for($i = 0; $i < count($images); $i++) {
|
||||||
|
|
||||||
$dir_arr = explode('/', $previous_element);
|
$dir_arr = explode('/', $previous_element);
|
||||||
|
|
||||||
if (count($images)>1) {
|
if (count($images)>1 && count($dir_arr) > 1) {
|
||||||
if (count($dir_arr)==0) {
|
if (count($dir_arr) && $ts->getCount() == 0){
|
||||||
$tl->addTile(new \OC\Pictures\TileSingle($previous_element));
|
|
||||||
} else if (count($dir_arr) && $ts->getCount() == 0){
|
|
||||||
$ts = new \OC\Pictures\TileStack(array($root.$previous_element), $dir_arr[0]);
|
$ts = new \OC\Pictures\TileStack(array($root.$previous_element), $dir_arr[0]);
|
||||||
} else {
|
} else {
|
||||||
$arr[] = $previous_element;
|
$arr[] = $previous_element;
|
||||||
|
|
Loading…
Reference in a new issue