don't use fetchAll() when you've done a query()

This commit is contained in:
Evan Prodromou 2011-08-27 13:14:31 -04:00
parent f81c1f7554
commit 6132bddabc

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