Fix comparisions in the trashbin app

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-05-10 14:18:15 +02:00 committed by Morris Jobke
parent 80febeae21
commit d703744d4a
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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 {