Fix trophies could not be awarded correctly under certain circumstances
authorJoshua Rüsweg <josh@bastelstu.be>
Thu, 5 Jul 2018 12:49:49 +0000 (14:49 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Thu, 5 Jul 2018 12:50:20 +0000 (14:50 +0200)
wcfsetup/install/files/lib/system/trophy/condition/TrophyConditionHandler.class.php

index b5d356db6fe58078e7b46164539287c0df6d9606..f3237a07f4b6804431f3725f3e48b8987ef67534 100644 (file)
@@ -93,6 +93,7 @@ class TrophyConditionHandler extends SingletonFactory {
         */
        private function getUserIDs(Trophy $trophy) {
                $userList = new UserList();
+               $userList->sqlConditionJoins .= " LEFT JOIN wcf".WCF_N."_user_option_value user_option_value ON (user_option_value.userID = user_table.userID)";
                
                $conditions = $trophy->getConditions();
                foreach ($conditions as $condition) {