From 65d7468bf3c15c7983d9d8e4e73513ffa1d8b973 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 1193d6ec56..5eaf502f23 100644 --- a/apps/files_trashbin/lib/Storage.php +++ b/apps/files_trashbin/lib/Storage.php @@ -237,7 +237,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; }