aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-08-02 16:28:33 +0200
committerGitHub <noreply@github.com>2017-08-02 16:28:33 +0200
commit6290ba829980c51daaeb4959c24a714223aab613 (patch)
treedc3a38818177479a42e38191ad37a080dbdc00b9 /apps/files
parent1a711b1e739399c053fa93fcfa3dd9c81af25d8c (diff)
parenta20934227c35260e92f7978e9280b706262c4667 (diff)
downloadnextcloud-server-6290ba829980c51daaeb4959c24a714223aab613.tar.gz
nextcloud-server-6290ba829980c51daaeb4959c24a714223aab613.zip
Merge pull request #4790 from nextcloud/fix-comparisons-in-apps
Fix comparisons in apps
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/ajax/download.php2
-rw-r--r--apps/files/lib/Helper.php2
-rw-r--r--apps/files/lib/Settings/Admin.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/ajax/download.php b/apps/files/ajax/download.php
index 17a7fd8b322..7c33cdec6dd 100644
--- a/apps/files/ajax/download.php
+++ b/apps/files/ajax/download.php
@@ -51,7 +51,7 @@ if(isset($_GET['downloadStartSecret'])
setcookie('ocDownloadStarted', $_GET['downloadStartSecret'], time() + 20, '/');
}
-$server_params = array( 'head' => \OC::$server->getRequest()->getMethod() == 'HEAD' );
+$server_params = array( 'head' => \OC::$server->getRequest()->getMethod() === 'HEAD' );
/**
* Http range requests support
diff --git a/apps/files/lib/Helper.php b/apps/files/lib/Helper.php
index d2cebce5ddc..4a5595999d2 100644
--- a/apps/files/lib/Helper.php
+++ b/apps/files/lib/Helper.php
@@ -227,7 +227,7 @@ class Helper {
foreach ($filesById as $key => $fileWithTags) {
foreach($fileList as $key2 => $file){
- if( $file[$fileIdentifier] == $key){
+ if( $file[$fileIdentifier] === $key){
$fileList[$key2] = $fileWithTags;
}
}
diff --git a/apps/files/lib/Settings/Admin.php b/apps/files/lib/Settings/Admin.php
index da1d5deaf35..faaeb5b89c1 100644
--- a/apps/files/lib/Settings/Admin.php
+++ b/apps/files/lib/Settings/Admin.php
@@ -46,7 +46,7 @@ class Admin implements ISettings {
* @return TemplateResponse
*/
public function getForm() {
- $htaccessWorking = (getenv('htaccessWorking') == 'true');
+ $htaccessWorking = (getenv('htaccessWorking') === 'true');
$htaccessWritable = is_writable(\OC::$SERVERROOT.'/.htaccess');
$userIniWritable = is_writable(\OC::$SERVERROOT.'/.user.ini');