diff options
-rw-r--r-- | lib/private/Files/Config/UserMountCache.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Config/UserMountCache.php b/lib/private/Files/Config/UserMountCache.php index 666ba9b065b..a5fe04c2cac 100644 --- a/lib/private/Files/Config/UserMountCache.php +++ b/lib/private/Files/Config/UserMountCache.php @@ -85,7 +85,7 @@ class UserMountCache implements IUserMountCache { public function registerMounts(IUser $user, array $mounts, array $mountProviderClasses = null) { // filter out non-proper storages coming from unit tests $mounts = array_filter($mounts, function (IMountPoint $mount) { - return $mount instanceof SharedMount || $mount->getStorage() && $mount->getStorage()->getCache(); + return $mount instanceof SharedMount || ($mount->getStorage() && $mount->getStorage()->getCache()); }); /** @var ICachedMountInfo[] $newMounts */ $newMounts = array_map(function (IMountPoint $mount) use ($user) { |