summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-08-18 03:26:35 -0700
committerBart Visscher <bartv@thisnet.nl>2013-08-18 03:26:35 -0700
commiteb9781851906a604536d3445e687ce1ba5a98d5d (patch)
tree71fd9e3562b1fae68a3badc32e1b8c9bd8d78499 /apps/files
parentdda5eb253006e9f984047595dca2c9d03d53fe80 (diff)
parent4bb0e1567ba430f6635d3867d92ae0a240140308 (diff)
downloadnextcloud-server-eb9781851906a604536d3445e687ce1ba5a98d5d.tar.gz
nextcloud-server-eb9781851906a604536d3445e687ce1ba5a98d5d.zip
Merge pull request #4483 from owncloud/compare-true-false
Compare result are already true/false
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/ajax/download.php2
-rw-r--r--apps/files/ajax/list.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/ajax/download.php b/apps/files/ajax/download.php
index b2bfd53506d..6a34cbe4ef1 100644
--- a/apps/files/ajax/download.php
+++ b/apps/files/ajax/download.php
@@ -39,4 +39,4 @@ if (!is_array($files_list)) {
$files_list = array($files);
}
-OC_Files::get($dir, $files_list, $_SERVER['REQUEST_METHOD'] == 'HEAD' ? true : false);
+OC_Files::get($dir, $files_list, $_SERVER['REQUEST_METHOD'] == 'HEAD');
diff --git a/apps/files/ajax/list.php b/apps/files/ajax/list.php
index 878e4cb2159..c50e96b2429 100644
--- a/apps/files/ajax/list.php
+++ b/apps/files/ajax/list.php
@@ -10,7 +10,7 @@ OCP\JSON::checkLoggedIn();
// Load the files
$dir = isset( $_GET['dir'] ) ? $_GET['dir'] : '';
-$doBreadcrumb = isset( $_GET['breadcrumb'] ) ? true : false;
+$doBreadcrumb = isset($_GET['breadcrumb']);
$data = array();
// Make breadcrumb