From: Arthur Schiwon Date: Fri, 1 Dec 2017 10:47:56 +0000 (+0100) Subject: check userExists later, saves lookups for appData_INSTANCEID userids X-Git-Tag: v12.0.5RC1~23^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e788ae0cf644f43d96e24c364d9a1a3dc2fe998b;p=nextcloud-server.git check userExists later, saves lookups for appData_INSTANCEID userids Signed-off-by: Arthur Schiwon --- 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; }