Commit 3683cc0e authored by fago's avatar fago

Issue #2050775 by mikran, Peter Bowey: PHP 5.5 compatibility fix for Notice:...

Issue #2050775 by mikran, Peter Bowey: PHP 5.5 compatibility fix for Notice: Undefined property: RulesReactionRule::/ in _entity_defaults_r().
parent 591aaa95
......@@ -921,7 +921,12 @@ function _entity_defaults_rebuild($entity_type) {
// implementations.
$originals[$name] = $entity->original;
$entity->{$keys['status']} |= ENTITY_IN_CODE;
if (!isset($entity->{$keys['status']})) {
$entity->{$keys['status']} = ENTITY_IN_CODE;
}
else {
$entity->{$keys['status']} |= ENTITY_IN_CODE;
}
$entity->is_rebuild = TRUE;
entity_save($entity_type, $entity);
unset($entity->is_rebuild);
......
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