Commit 27374dbf authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fetch correct number of members in groupmembers block


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 1caef86a
...@@ -59,7 +59,7 @@ class PluginBlocktypeGroupMembers extends SystemBlocktype { ...@@ -59,7 +59,7 @@ class PluginBlocktypeGroupMembers extends SystemBlocktype {
$groupid = $instance->get_view()->get('group'); $groupid = $instance->get_view()->get('group');
require_once('searchlib.php'); require_once('searchlib.php');
$groupmembers = get_group_user_search_results($groupid, '', 0, ($rows + $columns), '', $order); $groupmembers = get_group_user_search_results($groupid, '', 0, $rows * $columns, '', $order);
if ($groupmembers['count']) { if ($groupmembers['count']) {
$groupmembersarray = array_chunk($groupmembers['data'], $columns); $groupmembersarray = array_chunk($groupmembers['data'], $columns);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment