- Affected version
- 2.2.5
Is this deliberate?
src/XF/Repository/Trophy.php:63
src/XF/Repository/Trophy.php:63
PHP:
foreach ($trophies AS $trophy)
{
if (isset($userTrophies[$user->user_id . '-' . $trophy->trophy_id]))
{
continue; //But the criteria is met?
}
$userCriteria = $this->app()->criteria('XF:User', $trophy->user_criteria);
$userCriteria->setMatchOnEmpty(false);
if ($userCriteria->isMatched($user))
{
$this->awardTrophyToUser($trophy, $user);
}
}
}
Last edited: