aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-08-17 12:58:10 +0200
committerBart Visscher <bartv@thisnet.nl>2013-08-17 12:58:10 +0200
commit29b6dd53a095fd4140bf68a5ba7a4fd57c04a82d (patch)
tree5317dac0dc1db2a2880a3eb91441559654f72340 /apps/files_sharing
parentc538ac3081119e8bbd2aa375505ce79047a4d3f4 (diff)
downloadnextcloud-server-29b6dd53a095fd4140bf68a5ba7a4fd57c04a82d.tar.gz
nextcloud-server-29b6dd53a095fd4140bf68a5ba7a4fd57c04a82d.zip
Compare result are already true/false
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/public.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index 741ab145384..6dfe8a4bc00 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -112,9 +112,9 @@ if (isset($path)) {
if ($files_list === NULL ) {
$files_list = array($files);
}
- OC_Files::get($path, $files_list, $_SERVER['REQUEST_METHOD'] == 'HEAD' ? true : false);
+ OC_Files::get($path, $files_list, $_SERVER['REQUEST_METHOD'] == 'HEAD');
} else {
- OC_Files::get($dir, $file, $_SERVER['REQUEST_METHOD'] == 'HEAD' ? true : false);
+ OC_Files::get($dir, $file, $_SERVER['REQUEST_METHOD'] == 'HEAD');
}
exit();
} else {
@@ -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) ? true : false );
+ $allowPublicUploadEnabled = ($linkItem['permissions'] & OCP\PERMISSION_CREATE) !== 0;
if (\OCP\App::isEnabled('files_encryption')) {
$allowPublicUploadEnabled = false;
}