From: Mikael Nordfeldth Date: Sat, 13 Feb 2016 00:19:47 +0000 (+0100) Subject: listGet was not meant for that really X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fbcca62ae16019b446938b400199737b46907eb8;p=quix0rs-gnu-social.git listGet was not meant for that really --- 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());