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);