From 6132bddabcac0635a47c0caabdaf303485f8ef6d Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 27 Aug 2011 13:14:31 -0400 Subject: [PATCH] don't use fetchAll() when you've done a query() --- plugins/Directory/lib/sortablesubscriptionlist.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); -- 2.39.5