diff --git a/implementations/group.node.inc b/implementations/group.node.inc index 3692838..b9154aa 100644 --- a/implementations/group.node.inc +++ b/implementations/group.node.inc @@ -352,7 +352,7 @@ function group_node_update($node) { * Helper for hook_node_insert() and hook_node_update(). */ function group_node_save($node) { - if (isset($node->group)) { + if (!empty($node->group)) { group_load($node->group)->addEntity($node->nid, 'node', $node->type); } }