summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-01 14:47:35 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-03-01 14:47:35 +0100
commitee1330f121b3a0ef2de1b023d7f58694084d3444 (patch)
treed4b4154e6a481b7fdb76cae3eb0f8604278138d9 /apps
parente8e694d31eafe178426d1b971b7625de3fe3f23c (diff)
parentc5aff0933cb18fc651785648172687fd0f124fda (diff)
downloadnextcloud-server-ee1330f121b3a0ef2de1b023d7f58694084d3444.tar.gz
nextcloud-server-ee1330f121b3a0ef2de1b023d7f58694084d3444.zip
Merge pull request #22409 from owncloud/stable8.1-gdrive-reindexarraytoduetoduplicates
[stable8.1] Reindex array in GDrive after removing duplicates
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/lib/google.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_external/lib/google.php b/apps/files_external/lib/google.php
index 8199d97eacb..701e17d970b 100644
--- a/apps/files_external/lib/google.php
+++ b/apps/files_external/lib/google.php
@@ -291,6 +291,8 @@ class Google extends \OC\Files\Storage\Common {
}
$pageToken = $children->getNextPageToken();
}
+ // reindex values to compensate for removed duplicates
+ $files = array_values($files);
\OC\Files\Stream\Dir::register('google'.$path, $files);
return opendir('fakedir://google'.$path);
} else {