]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/profilelist.php
Revert "Slightly larger avatars and some box-shadow"
[quix0rs-gnu-social.git] / lib / profilelist.php
index 085690b9f7f4a33805789d42565e3f1d71ef1299..11ed8945e9b0c60195561b15ffa8bec15351bab4 100644 (file)
@@ -85,15 +85,8 @@ class ProfileList extends Widget
 
     function showProfiles()
     {
-        // Note: we don't use fetchAll() because it's borked with query()
-
-        $profiles = array();
-
-        while ($this->profile->fetch()) {
-            $profiles[] = clone($this->profile);
-        }
-
-        $cnt = count($profiles);
+        $cnt = $this->profile->N;
+        $profiles = $this->profile->fetchAll();
 
         $max = min($cnt, $this->maxProfiles());