Skip to content
Snippets Groups Projects
Commit a9786070 authored by Robin Appelman's avatar Robin Appelman
Browse files

Use &=

parent 961e4e5c
No related branches found
No related tags found
No related merge requests found
...@@ -95,7 +95,7 @@ class Shared_Cache extends Cache { ...@@ -95,7 +95,7 @@ class Shared_Cache extends Cache {
} }
$data['uid_owner'] = $this->storage->getOwner($file); $data['uid_owner'] = $this->storage->getOwner($file);
if (isset($data['permissions'])) { if (isset($data['permissions'])) {
$data['permissions'] = $data['permissions'] & $this->storage->getPermissions(''); $data['permissions'] &= $this->storage->getPermissions('');
} else { } else {
$data['permissions'] = $this->storage->getPermissions(''); $data['permissions'] = $this->storage->getPermissions('');
} }
...@@ -135,7 +135,7 @@ class Shared_Cache extends Cache { ...@@ -135,7 +135,7 @@ class Shared_Cache extends Cache {
$data['name'] = basename($this->storage->getMountPoint()); $data['name'] = basename($this->storage->getMountPoint());
$data['is_share_mount_point'] = true; $data['is_share_mount_point'] = true;
} }
$data['permissions'] = $data['permissions'] & $this->storage->getPermissions(''); $data['permissions'] &= $this->storage->getPermissions('');
return $data; return $data;
} }
return false; return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment