From 319ad804373be6af7c6745346306315b20f0dc33 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 26 May 2020 16:39:24 +0200 Subject: [PATCH] Use `UserProfile` objects for newest members See #3321 --- .../system/cache/builder/UserStatsCacheBuilder.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/system/cache/builder/UserStatsCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/UserStatsCacheBuilder.class.php index 6594fe880a..d62035b6e1 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/UserStatsCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/UserStatsCacheBuilder.class.php @@ -1,6 +1,6 @@ fetchColumn(); // newest member - $sql = "SELECT * + $sql = "SELECT userID FROM wcf".WCF_N."_user ORDER BY userID DESC"; $statement = WCF::getDB()->prepareStatement($sql, 1); $statement->execute(); - $data['newestMember'] = $statement->fetchObject(User::class); + $data['newestMember'] = UserProfileRuntimeCache::getInstance()->getObject($statement->fetchSingleColumn()); return $data; } -- 2.20.1