From e788ae0cf644f43d96e24c364d9a1a3dc2fe998b Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 1 Dec 2017 11:47:56 +0100 Subject: [PATCH] check userExists later, saves lookups for appData_INSTANCEID userids Signed-off-by: Arthur Schiwon --- apps/files_trashbin/lib/Storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_trashbin/lib/Storage.php b/apps/files_trashbin/lib/Storage.php index e3fe648281..cc2114c8d6 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; }