forked from GNUsocial/gnu-social
don't use fetchAll() when you've done a query()
This commit is contained in:
parent
f81c1f7554
commit
6132bddabc
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user