]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
listGet was not meant for that really
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 13 Feb 2016 00:19:47 +0000 (01:19 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 13 Feb 2016 00:19:47 +0000 (01:19 +0100)
plugins/RegisterThrottle/actions/ipregistrations.php

index 8d74803ae203354979bc79423a7f53fc80db73ae..46f1ed854fc6b25335fb39c1632949984bd4b402 100644 (file)
@@ -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());