Fix strict warning on user group page

Trusty's php raised a strict warning on groups directory block rendering.
This patch is fixing the pass reference bug of Drupal's render call.

Change-Id: Idf773276708a1609881846bce9475ffdeb1db925
This commit is contained in:
Marton Kiss 2016-04-07 11:49:06 +02:00
parent 13dc22c740
commit ab60b7a0dd
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ function groups_directory_block_view($delta='') {
$block['subject'] = t('Filter Groups');
break;
case 'groups_directory_list':
$block['content'] = render(groups_directory_list());
$element = groups_directory_list();
$block['content'] = render($element);
$block['subject'] = t('Groups');
break;
}