diff options
author | Joas Schilling <coding@schilljs.com> | 2022-04-21 10:47:26 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-04-21 10:47:26 +0200 |
commit | 49e62149d89264631cd07f7ddc862c39f14430a5 (patch) | |
tree | f65441d72c81410c8454dac84e8b1c199e1a994e /lib/private | |
parent | f4135c72f505f13891e0b05e7e4f4d2d921462b0 (diff) | |
download | nextcloud-server-49e62149d89264631cd07f7ddc862c39f14430a5.tar.gz nextcloud-server-49e62149d89264631cd07f7ddc862c39f14430a5.zip |
Make the binary operation order explicit
Signed-off-by: Joas Schilling <coding@schilljs.com>
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) { |