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());