summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2015-09-14 20:31:24 +0100
committerRobin McCorkell <rmccorkell@owncloud.com>2015-09-16 13:12:47 +0100
commitca7b4a42f97728d41e143c2fc8534265ab59523d (patch)
treefce2a41cf061e81a220af526c338d5807dad43dd /apps/files_external/lib
parent4d77fac19194639a8150d24ee103043ad3dc9fda (diff)
downloadnextcloud-server-ca7b4a42f97728d41e143c2fc8534265ab59523d.tar.gz
nextcloud-server-ca7b4a42f97728d41e143c2fc8534265ab59523d.zip
Fix external storage priority logic
Diffstat (limited to 'apps/files_external/lib')
-rw-r--r--apps/files_external/lib/config/configadapter.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/config/configadapter.php b/apps/files_external/lib/config/configadapter.php
index a255a7b3d25..cb8c2f24caa 100644
--- a/apps/files_external/lib/config/configadapter.php
+++ b/apps/files_external/lib/config/configadapter.php
@@ -114,7 +114,7 @@ class ConfigAdapter implements IMountProvider {
$this->userStoragesService->setUser($user);
$this->userGlobalStoragesService->setUser($user);
- foreach ($this->userGlobalStoragesService->getAllStorages() as $storage) {
+ foreach ($this->userGlobalStoragesService->getUniqueStorages() as $storage) {
try {
$this->prepareStorageConfig($storage, $user);
$impl = $this->constructStorage($storage);