diff --git a/commons_groups.module b/commons_groups.module index 448d37efe5ceb3642a7e97ed8f6d15f3c565bfab..56bc58dafbc8ba0fe3ea38e5448f850b997dd312 100644 --- a/commons_groups.module +++ b/commons_groups.module @@ -441,12 +441,14 @@ function commons_groups_entityreference_default_value($entity_type, $entity, $fi } } - function commons_groups_default_rules_configuration_alter(&$configs) { +function commons_groups_default_rules_configuration_alter(&$configs) { // Disable default OG new content notifications. // The language doesn't correspond to Commons' open groups model and we use // commons_follow and commons_follow_notify for new content notifications. - $configs['rules_og_member_active']->active = FALSE; - } + if (isset($configs['rules_og_member_active'])) { + $configs['rules_og_member_active']->active = FALSE; + } +} /** * Implements hook_node_update().