]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't use fetchAll() for profile lists ever
authorEvan Prodromou <evan@status.net>
Sat, 27 Aug 2011 17:34:14 +0000 (13:34 -0400)
committerEvan Prodromou <evan@status.net>
Sat, 27 Aug 2011 17:34:14 +0000 (13:34 -0400)
lib/profilelist.php

index 9039d1b6d87cdced07fe4eaaed98a7b3c6e3113e..313cf760731e9a72a41e2ffe5966269a7d01bd96 100644 (file)
@@ -85,7 +85,13 @@ class ProfileList extends Widget
 
     function showProfiles()
     {
-        $profiles = $this->profile->fetchAll();
+        // 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);