Skip to content
Snippets Groups Projects
Commit 1f783598 authored by ekes's avatar ekes
Browse files

Remove another PHP warning from custom theme code.

parent ac18e289
Branches 245-only-index-future-events
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ $groups = array(); ...@@ -11,7 +11,7 @@ $groups = array();
$group_ids = $row->_entity_properties['og_group_ref']; $group_ids = $row->_entity_properties['og_group_ref'];
// Think it's been loaded and cached anyway by the field handler, which // Think it's been loaded and cached anyway by the field handler, which
// is probably where this should be done. // is probably where this should be done.
foreach ($group_ids as $gid){ foreach ((array) $group_ids as $gid){
$node = entity_load_single('node', $gid); $node = entity_load_single('node', $gid);
if ($node->type == 'group') { if ($node->type == 'group') {
// If it's a group well put it in. // If it's a group well put it in.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment