FIx user trophy object list condition
authorJoshua Rüsweg <josh@bastelstu.be>
Fri, 6 Oct 2017 10:14:15 +0000 (12:14 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Fri, 6 Oct 2017 10:14:28 +0000 (12:14 +0200)
wcfsetup/install/files/lib/system/condition/UserTrophyCondition.class.php

index 4d1bf79396c671791f01792703ce48239a4d237b..ef1db184fcc35acdb6972a49a945c2fca4101fbf 100644 (file)
@@ -65,10 +65,10 @@ class UserTrophyCondition extends AbstractMultipleFieldsCondition implements ICo
                }
                
                if (isset($conditionData['userTrophy'])) {
-                       $objectList->getConditionBuilder()->add('user_table.userID IN (SELECT userID FROM wcf'.WCF_N.'_user_trophy WHERE trophyID IN (?) GROUP BY userID HAVING COUNT(userID) = ?)', [$conditionData['trophyIDs'], count($conditionData['trophyIDs'])]);
+                       $objectList->getConditionBuilder()->add('user_table.userID IN (SELECT userID FROM wcf'.WCF_N.'_user_trophy WHERE trophyID IN (?) GROUP BY userID HAVING COUNT(userID) = ?)', [$conditionData['userTrophy'], count($conditionData['userTrophy'])]);
                }
                if (isset($conditionData['notUserTrophy'])) {
-                       $objectList->getConditionBuilder()->add('user_table.userID NOT IN (SELECT userID FROM wcf'.WCF_N.'_user_trophy WHERE trophyID IN (?))', [$conditionData['notTrophyIDs']]);
+                       $objectList->getConditionBuilder()->add('user_table.userID NOT IN (SELECT userID FROM wcf'.WCF_N.'_user_trophy WHERE trophyID IN (?))', [$conditionData['notUserTrophy']]);
                }
        }