summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-06-09 12:47:00 +0200
committerRobin Appelman <icewind@owncloud.com>2014-06-09 12:47:00 +0200
commita9786070118f67881750d40458e88f6795363e55 (patch)
tree6a716641d61e7c1f244c263a35a52fa0beba2fb4
parent961e4e5c7ce315c29cbae720e41ee50b91331e37 (diff)
downloadnextcloud-server-a9786070118f67881750d40458e88f6795363e55.tar.gz
nextcloud-server-a9786070118f67881750d40458e88f6795363e55.zip
Use &=
-rw-r--r--apps/files_sharing/lib/cache.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php
index b2594aa0b4d..7a6b70d82b5 100644
--- a/apps/files_sharing/lib/cache.php
+++ b/apps/files_sharing/lib/cache.php
@@ -95,7 +95,7 @@ class Shared_Cache extends Cache {
}
$data['uid_owner'] = $this->storage->getOwner($file);
if (isset($data['permissions'])) {
- $data['permissions'] = $data['permissions'] & $this->storage->getPermissions('');
+ $data['permissions'] &= $this->storage->getPermissions('');
} else {
$data['permissions'] = $this->storage->getPermissions('');
}
@@ -135,7 +135,7 @@ class Shared_Cache extends Cache {
$data['name'] = basename($this->storage->getMountPoint());
$data['is_share_mount_point'] = true;
}
- $data['permissions'] = $data['permissions'] & $this->storage->getPermissions('');
+ $data['permissions'] &= $this->storage->getPermissions('');
return $data;
}
return false;