diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-04-27 11:53:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-27 11:53:18 +0200 |
commit | dbdb9f6f11a32bc1643f302c44654076bd56db31 (patch) | |
tree | e55c69363f6d6e03913568d7160648eb6f0812c4 /lib/private | |
parent | b1cb2e53404575a4859d4f97bdc97a978972897d (diff) | |
parent | 49e62149d89264631cd07f7ddc862c39f14430a5 (diff) | |
download | nextcloud-server-dbdb9f6f11a32bc1643f302c44654076bd56db31.tar.gz nextcloud-server-dbdb9f6f11a32bc1643f302c44654076bd56db31.zip |
Merge pull request #32034 from nextcloud/bugfix/noid/satisfy-binary-operation-order
Make the binary operation order explicit
Diffstat (limited to 'lib/private')
-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) { |