Skip to content

Commit

Permalink
Merge pull request #7577 from nextcloud/7361_12
Browse files Browse the repository at this point in the history
[stable12] check userExists later, saves lookups for appData_INSTANCEID userids
  • Loading branch information
rullzer authored Dec 19, 2017
2 parents fe9f100 + e788ae0 commit 4ed99dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files_trashbin/lib/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ protected function shouldMoveToTrash($path){
return false;
}

if ($this->userManager->userExists($parts[1]) && $parts[2] == 'files') {
if ($parts[2] === 'files' && $this->userManager->userExists($parts[1])) {
return true;
}

Expand Down

0 comments on commit 4ed99dd

Please sign in to comment.