listGet was not meant for that really

This commit is contained in:
Mikael Nordfeldth 2016-02-13 01:19:47 +01:00
parent 8ef2abf30b
commit fbcca62ae1
1 changed files with 2 additions and 1 deletions

View File

@ -26,7 +26,8 @@ class IpregistrationsAction extends ManagedAction
public function showContent() public function showContent()
{ {
$this->elementStart('ul'); $this->elementStart('ul');
foreach (Profile::listGet('id', $this->profile_ids) as $profile) { $profile = Profile::multiGet('id', $this->profile_ids);
while ($profile->fetch()) {
$this->elementStart('li'); $this->elementStart('li');
try { try {
$this->element('a', ['href'=>$profile->getUrl()], $profile->getFancyName()); $this->element('a', ['href'=>$profile->getUrl()], $profile->getFancyName());