Skip to content

Commit

Permalink
Fix TemplateConfiguration undefined attribute warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
TonisOrmisson committed Dec 30, 2017
1 parent b796567 commit 73d3604
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/models/TemplateConfiguration.php
Expand Up @@ -999,7 +999,8 @@ public function __get($name)
$sAttribute = parent::__get($name);
if ($sAttribute === 'inherit') {
// NOTE: this is object recursive (if parent configuration field is set to inherit, then it will lead to this method again.)
$sAttribute = $this->getParentConfiguration()->$name;
$attribute = (isset($this->getParentConfiguration()->$name ? $this->getParentConfiguration()->$name : null))
$sAttribute = $attribute;
}
} else {
$sAttribute = parent::__get($name);
Expand Down

0 comments on commit 73d3604

Please sign in to comment.