if ($userProfile === null) continue;
// show a maximum of x users
- if ($i == $this->box->limit) break;
+ if ($i == $this->limit) break;
$birthdayUserOption->setUser($userProfile->getDecoratedObject());
// sort users
DatabaseObject::sort($visibleUserProfiles, $this->sortField, $this->sortOrder);
- // apply limit
- if (count($visibleUserProfiles) > $this->box->limit) {
- $visibleUserProfiles = array_slice($visibleUserProfiles, 0, $this->box->limit);
- }
-
$this->content = WCF::getTPL()->fetch($this->templateName, 'wcf', [
'birthdayUserProfiles' => $visibleUserProfiles
], true);