[Pkg-owncloud-commits] [owncloud] 257/457: only use mount provider if we have a valid user
David Prévot
taffit at moszumanska.debian.org
Sun Jun 28 20:06:18 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 6f47a547d8a86d1425b00ae0d11a692e772ec4ac
Author: Robin Appelman <icewind at owncloud.com>
Date: Thu May 7 14:40:44 2015 +0200
only use mount provider if we have a valid user
---
lib/private/files/filesystem.php | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/private/files/filesystem.php b/lib/private/files/filesystem.php
index 1893996..2391e84 100644
--- a/lib/private/files/filesystem.php
+++ b/lib/private/files/filesystem.php
@@ -436,8 +436,10 @@ class Filesystem {
$mountConfigManager->listen('\OC\Files\Config', 'registerMountProvider', function (IMountProvider $provider) use ($userManager) {
foreach (Filesystem::$usersSetup as $user => $setup) {
$userObject = $userManager->get($user);
- $mounts = $provider->getMountsForUser($userObject, Filesystem::getLoader());
- array_walk($mounts, array(self::$mounts, 'addMount'));
+ if ($userObject) {
+ $mounts = $provider->getMountsForUser($userObject, Filesystem::getLoader());
+ array_walk($mounts, array(self::$mounts, 'addMount'));
+ }
}
});
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list