From 49e62149d89264631cd07f7ddc862c39f14430a5 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 21 Apr 2022 10:47:26 +0200 Subject: Make the binary operation order explicit Signed-off-by: Joas Schilling --- lib/private/Files/Config/UserMountCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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) { -- cgit v1.2.3