diff --git a/plugins/Directory/lib/sortablesubscriptionlist.php b/plugins/Directory/lib/sortablesubscriptionlist.php index b61f760ef4cdc1aab0ed064d5cf754803f417c38..750a0f2491e96ad82c58724f6d65b6dbb8eed175 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);