From: Evan Prodromou Date: Sat, 27 Aug 2011 17:14:31 +0000 (-0400) Subject: don't use fetchAll() when you've done a query() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6132bddabcac0635a47c0caabdaf303485f8ef6d;p=quix0rs-gnu-social.git don't use fetchAll() when you've done a query() --- diff --git a/plugins/Directory/lib/sortablesubscriptionlist.php b/plugins/Directory/lib/sortablesubscriptionlist.php index b61f760ef4..750a0f2491 100644 --- a/plugins/Directory/lib/sortablesubscriptionlist.php +++ b/plugins/Directory/lib/sortablesubscriptionlist.php @@ -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);