diff --git a/lib/private/User/Database.php b/lib/private/User/Database.php index 2770efe20ebe5..b43fe1a8f1e21 100644 --- a/lib/private/User/Database.php +++ b/lib/private/User/Database.php @@ -417,8 +417,8 @@ private function loadUser(string $loginName, bool $tryEmail = true): bool { $this->cache[$loginName] = $this->cache[$emailUId]; // Set a reference to the uid cache entry for also delete email entry on user delete $this->cache[$emailUId]['email'] = $loginName; + return true; } - return $result; } }