From: Matthias Schmidt Date: Tue, 26 May 2020 14:39:24 +0000 (+0200) Subject: Use `UserProfile` objects for newest members X-Git-Tag: 5.3.0_Alpha_1~254 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=319ad804373be6af7c6745346306315b20f0dc33;p=GitHub%2FWoltLab%2FWCF.git Use `UserProfile` objects for newest members See #3321 --- 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; }