From: Mikael Nordfeldth Date: Thu, 7 Jan 2016 11:35:52 +0000 (+0100) Subject: Return Profile objects from getGroups in GroupdirectoryAction X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c02f23e63f471a4d8cc109a17fa913cdd42aa399;p=quix0rs-gnu-social.git Return Profile objects from getGroups in GroupdirectoryAction --- diff --git a/plugins/Directory/actions/groupdirectory.php b/plugins/Directory/actions/groupdirectory.php index 32e5ce50b4..124ccffe75 100644 --- a/plugins/Directory/actions/groupdirectory.php +++ b/plugins/Directory/actions/groupdirectory.php @@ -323,12 +323,14 @@ class GroupdirectoryAction extends ManagedAction $offset = ($this->page-1) * PROFILES_PER_PAGE; $limit = PROFILES_PER_PAGE + 1; + $group->selectAdd(); + $group->selectAdd('profile_id'); $group->orderBy($order); $group->limit($offset, $limit); $group->find(); - return $group; + return Profile::multiGet('id', $group->fetchAll('profile_id')); } /**