Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Repository: avoid error on parentTemplateObject type
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jul 20, 2015
1 parent 4fa4a7c commit 2a832e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/core/classes/class.Repository.php
Expand Up @@ -312,7 +312,7 @@ public function addOption($oName, $oValue)
public function getOption($oName, $safe=false, $resolveUser = null)
{
if (!$safe && $this->inferOptionsFromParent) {
if (!isset($this->parentTemplateObject)) {
if (!isset($this->parentTemplateObject) || !is_a($this->parentTemplateObject, "Repository")) {
$this->parentTemplateObject = ConfService::getRepositoryById($this->parentId);
}
if (isSet($this->parentTemplateObject)) {
Expand Down

0 comments on commit 2a832e7

Please sign in to comment.