diff options
author | Andreas Fischer <bantu@owncloud.com> | 2013-08-17 23:41:37 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2013-08-17 23:41:37 +0200 |
commit | 4bb0e1567ba430f6635d3867d92ae0a240140308 (patch) | |
tree | f84c915ff7ae7d48e49b8f4f2baa9f0e09361002 /apps | |
parent | 4f462e9b6f2a22b0cbba22fd9888322fa4c63a3d (diff) | |
download | nextcloud-server-4bb0e1567ba430f6635d3867d92ae0a240140308.tar.gz nextcloud-server-4bb0e1567ba430f6635d3867d92ae0a240140308.zip |
Use boolean casting for bitwise and result.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/public.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index 6dfe8a4bc00..e9fdf6e4c95 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -133,7 +133,7 @@ if (isset($path)) { $tmpl->assign('mimetype', \OC\Files\Filesystem::getMimeType($path)); $tmpl->assign('fileTarget', basename($linkItem['file_target'])); $tmpl->assign('dirToken', $linkItem['token']); - $allowPublicUploadEnabled = ($linkItem['permissions'] & OCP\PERMISSION_CREATE) !== 0; + $allowPublicUploadEnabled = (bool) ($linkItem['permissions'] & OCP\PERMISSION_CREATE); if (\OCP\App::isEnabled('files_encryption')) { $allowPublicUploadEnabled = false; } |