]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't use fetchAll() when you've done a query()
authorEvan Prodromou <evan@status.net>
Sat, 27 Aug 2011 17:14:31 +0000 (13:14 -0400)
committerEvan Prodromou <evan@status.net>
Sat, 27 Aug 2011 17:14:31 +0000 (13:14 -0400)
plugins/Directory/lib/sortablesubscriptionlist.php

index b61f760ef4cdc1aab0ed064d5cf754803f417c38..750a0f2491e96ad82c58724f6d65b6dbb8eed175 100644 (file)
@@ -130,7 +130,13 @@ class SortableSubscriptionList extends SubscriptionList
 
     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);