X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fprofilelist.php;h=11ed8945e9b0c60195561b15ffa8bec15351bab4;hb=ad264b70e109f9fc6c8a9038a64fed125aee1fa6;hp=085690b9f7f4a33805789d42565e3f1d71ef1299;hpb=b0dfc70a54e5e184023ed982dfaf5439041e9708;p=quix0rs-gnu-social.git diff --git a/lib/profilelist.php b/lib/profilelist.php index 085690b9f7..11ed8945e9 100644 --- a/lib/profilelist.php +++ b/lib/profilelist.php @@ -85,15 +85,8 @@ class ProfileList extends Widget function showProfiles() { - // 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 = $this->profile->N; + $profiles = $this->profile->fetchAll(); $max = min($cnt, $this->maxProfiles());