forked from GNUsocial/gnu-social
don't use fetchAll() for profile lists ever
This commit is contained in:
parent
6132bddabc
commit
8501ddf0ee
@ -85,7 +85,13 @@ class ProfileList extends Widget
|
|||||||
|
|
||||||
function showProfiles()
|
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);
|
$cnt = count($profiles);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user