Fix comparisions in the trashbin app
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
80febeae21
commit
d703744d4a
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue