Unverified Commit fa5f97e8 authored by alesr's avatar alesr Committed by GitHub

Merge pull request #431 from jacobembree/7.x-2.x-2792031

Fix wrong patch applied from #2792031
parents 8761944d 7191fc28
......@@ -896,7 +896,7 @@ function og_entity_update($entity, $entity_type) {
$original_entity = isset($entity->original) ? $entity->original : NULL;
$property = OG_DEFAULT_ACCESS_FIELD;
if (!empty($entity->{$property}) && !empty($original_entity->{$property}) && $entity->{$property} != $original_entity->{$property}) {
if (!empty($entity->{$property}) && isset($original_entity->{$property}) && $entity->{$property} != $original_entity->{$property}) {
if (!og_is_group_default_access($entity_type, $entity)) {
// Override default roles.
og_roles_override($entity_type, $bundle, $id);
......
Markdown is supported
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