diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-01 14:47:35 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-01 14:47:35 +0100 |
commit | ee1330f121b3a0ef2de1b023d7f58694084d3444 (patch) | |
tree | d4b4154e6a481b7fdb76cae3eb0f8604278138d9 /apps | |
parent | e8e694d31eafe178426d1b971b7625de3fe3f23c (diff) | |
parent | c5aff0933cb18fc651785648172687fd0f124fda (diff) | |
download | nextcloud-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.php | 2 |
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 { |