summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2017-12-01 11:47:56 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2017-12-19 14:13:37 +0100
commite788ae0cf644f43d96e24c364d9a1a3dc2fe998b (patch)
tree14338a7d07fd522d646f6afef6734ab7514aa26d /apps
parentfe9f100a1ba58cd8487833ff2eb609789d3bd9d3 (diff)
downloadnextcloud-server-e788ae0cf644f43d96e24c364d9a1a3dc2fe998b.tar.gz
nextcloud-server-e788ae0cf644f43d96e24c364d9a1a3dc2fe998b.zip
check userExists later, saves lookups for appData_INSTANCEID userids
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_trashbin/lib/Storage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/Storage.php b/apps/files_trashbin/lib/Storage.php
index e3fe648281c..cc2114c8d6b 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 ($parts[2] === 'files' && $this->userManager->userExists($parts[1])) {
return true;
}