From fbcca62ae16019b446938b400199737b46907eb8 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sat, 13 Feb 2016 01:19:47 +0100 Subject: [PATCH] listGet was not meant for that really --- plugins/RegisterThrottle/actions/ipregistrations.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/RegisterThrottle/actions/ipregistrations.php b/plugins/RegisterThrottle/actions/ipregistrations.php index 8d74803ae2..46f1ed854f 100644 --- a/plugins/RegisterThrottle/actions/ipregistrations.php +++ b/plugins/RegisterThrottle/actions/ipregistrations.php @@ -26,7 +26,8 @@ class IpregistrationsAction extends ManagedAction public function showContent() { $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'); try { $this->element('a', ['href'=>$profile->getUrl()], $profile->getFancyName());