diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-08-17 12:58:10 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-08-17 12:58:10 +0200 |
commit | 29b6dd53a095fd4140bf68a5ba7a4fd57c04a82d (patch) | |
tree | 5317dac0dc1db2a2880a3eb91441559654f72340 /apps/files/ajax | |
parent | c538ac3081119e8bbd2aa375505ce79047a4d3f4 (diff) | |
download | nextcloud-server-29b6dd53a095fd4140bf68a5ba7a4fd57c04a82d.tar.gz nextcloud-server-29b6dd53a095fd4140bf68a5ba7a4fd57c04a82d.zip |
Compare result are already true/false
Diffstat (limited to 'apps/files/ajax')
-rw-r--r-- | apps/files/ajax/download.php | 2 | ||||
-rw-r--r-- | apps/files/ajax/list.php | 2 |
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..b2975790a10 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 |