summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-05-10 14:07:58 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-08-01 13:56:12 +0200
commite30287cf814bca99b01561df0e60fb00c59ade42 (patch)
treeb029654c0df4c4d120a1c1424a63a93733cf9d80 /apps/files/lib
parent45e2c415d4ff066d579ab133be4f15453c07b242 (diff)
downloadnextcloud-server-e30287cf814bca99b01561df0e60fb00c59ade42.tar.gz
nextcloud-server-e30287cf814bca99b01561df0e60fb00c59ade42.zip
Fix comparisons in the files app
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/Helper.php2
-rw-r--r--apps/files/lib/Settings/Admin.php2
2 files changed, 2 insertions, 2 deletions
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');