From: Evan Prodromou Date: Sat, 27 Aug 2011 17:34:14 +0000 (-0400) Subject: don't use fetchAll() for profile lists ever X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8501ddf0eef0ae47c672a4de124e9f79596f6010;p=quix0rs-gnu-social.git don't use fetchAll() for profile lists ever --- diff --git a/lib/profilelist.php b/lib/profilelist.php index 9039d1b6d8..313cf76073 100644 --- a/lib/profilelist.php +++ b/lib/profilelist.php @@ -85,7 +85,13 @@ class ProfileList extends Widget 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);