summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-05-10 14:18:15 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-08-01 13:56:12 +0200
commitd703744d4afa9b387616ff6f6de574b652e125f1 (patch)
tree668f7a3585192eabd6b250c7ac1fe6d39db7cfc1 /apps/files_trashbin
parent80febeae21a30e0c1a040b99860983dfd484556b (diff)
downloadnextcloud-server-d703744d4afa9b387616ff6f6de574b652e125f1.tar.gz
nextcloud-server-d703744d4afa9b387616ff6f6de574b652e125f1.zip
Fix comparisions in the trashbin app
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r--apps/files_trashbin/lib/Storage.php2
-rw-r--r--apps/files_trashbin/lib/Trashbin.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_trashbin/lib/Storage.php b/apps/files_trashbin/lib/Storage.php
index e3fe648281c..fdc7081b137 100644
--- a/apps/files_trashbin/lib/Storage.php
+++ b/apps/files_trashbin/lib/Storage.php
@@ -206,7 +206,7 @@ class Storage extends Wrapper {
return false;
}
- if ($this->userManager->userExists($parts[1]) && $parts[2] == 'files') {
+ if ($this->userManager->userExists($parts[1]) && $parts[2] === 'files') {
return true;
}
diff --git a/apps/files_trashbin/lib/Trashbin.php b/apps/files_trashbin/lib/Trashbin.php
index 88d23cee711..0d336664e38 100644
--- a/apps/files_trashbin/lib/Trashbin.php
+++ b/apps/files_trashbin/lib/Trashbin.php
@@ -95,7 +95,7 @@ class Trashbin {
return [null, null];
}
Filesystem::initMountPoints($uid);
- if ($uid != User::getUser()) {
+ if ($uid !== User::getUser()) {
$info = Filesystem::getFileInfo($filename);
$ownerView = new View('/' . $uid . '/files');
try {