From: Joshua Rüsweg Date: Fri, 6 Oct 2017 10:14:15 +0000 (+0200) Subject: FIx user trophy object list condition X-Git-Tag: 3.1.0_Beta_2~52 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8e6c49357694631a5cf443ca21beb473572d0374;p=GitHub%2FWoltLab%2FWCF.git FIx user trophy object list condition --- diff --git a/wcfsetup/install/files/lib/system/condition/UserTrophyCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserTrophyCondition.class.php index 4d1bf79396..ef1db184fc 100644 --- a/wcfsetup/install/files/lib/system/condition/UserTrophyCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserTrophyCondition.class.php @@ -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']]); } }