Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-04-27 12:53:18 +0300
committerGitHub <noreply@github.com>2022-04-27 12:53:18 +0300
commitdbdb9f6f11a32bc1643f302c44654076bd56db31 (patch)
treee55c69363f6d6e03913568d7160648eb6f0812c4 /lib
parentb1cb2e53404575a4859d4f97bdc97a978972897d (diff)
parent49e62149d89264631cd07f7ddc862c39f14430a5 (diff)
Merge pull request #32034 from nextcloud/bugfix/noid/satisfy-binary-operation-order
Make the binary operation order explicit
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Config/UserMountCache.php2
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) {