Commit a363f14d authored by czigor's avatar czigor Committed by amitaibu

Issue #2099193 by czigor: Variable name typo

parent 2f7a3d74
......@@ -845,10 +845,10 @@ function og_entity_update($entity, $entity_type) {
}
}
}
$origianl_entity = $entity->original;
$original_entity = $entity->original;
$property = OG_DEFAULT_ACCESS_FIELD;
if (!empty($entity->{$property}) && $entity->{$property} != $origianl_entity->{$property}) {
if (!empty($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