$statement->execute($conditionBuilder->getParameters());
}
+ // update trophy points
+ if (MODULE_TROPHY) {
+ $conditionBuilder = new PreparedStatementConditionBuilder();
+ $conditionBuilder->add('user_table.userID IN (?)', [$userIDs]);
+ $sql = "UPDATE wcf".WCF_N."_user user_table
+ SET trophyPoints = (
+ SELECT COUNT(*)
+ FROM wcf".WCF_N."_user_trophy user_trophy
+ LEFT JOIN wcf".WCF_N."_trophy trophy ON user_trophy.trophyID = trophy.trophyID
+ LEFT JOIN wcf".WCF_N."_category trophy_category ON trophy.categoryID = trophy_category.categoryID
+ WHERE user_trophy.userID = user_table.userID
+ AND trophy.isDisabled = 0
+ AND trophy_category.isDisabled = 0
+ )
+ ".$conditionBuilder;
+ $statement = WCF::getDB()->prepareStatement($sql);
+ $statement->execute($conditionBuilder->getParameters());
+ }
+
// update signatures and about me
$sql = "UPDATE wcf".WCF_N."_user_option_value
SET userOption" . User::getUserOptionID('aboutMe') . " = ?