summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Lib/Storage/Swift.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-05-10 14:12:58 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-08-01 13:56:12 +0200
commit7a62fbd205874355abb3b551b182bc61b9c3d3e1 (patch)
tree8fba151653401d4af74f2091fb7d2e6add45f00e /apps/files_external/lib/Lib/Storage/Swift.php
parente30287cf814bca99b01561df0e60fb00c59ade42 (diff)
downloadnextcloud-server-7a62fbd205874355abb3b551b182bc61b9c3d3e1.tar.gz
nextcloud-server-7a62fbd205874355abb3b551b182bc61b9c3d3e1.zip
Fix comparisons in the files external app
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_external/lib/Lib/Storage/Swift.php')
-rw-r--r--apps/files_external/lib/Lib/Storage/Swift.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/Lib/Storage/Swift.php b/apps/files_external/lib/Lib/Storage/Swift.php
index db5b5bf6d95..57df4aa01a5 100644
--- a/apps/files_external/lib/Lib/Storage/Swift.php
+++ b/apps/files_external/lib/Lib/Storage/Swift.php
@@ -435,7 +435,7 @@ class Swift extends \OC\Files\Storage\Common {
}
$metadata = array('timestamp' => $mtime);
if ($this->file_exists($path)) {
- if ($this->is_dir($path) && $path != '.') {
+ if ($this->is_dir($path) && $path !== '.') {
$path .= '/';
}
@@ -640,7 +640,7 @@ class Swift extends \OC\Files\Storage\Common {
}, $cachedContent);
sort($cachedNames);
sort($content);
- return $cachedNames != $content;
+ return $cachedNames !== $content;
}
/**