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