diff --git a/Modules/LearningModule/classes/class.ilObjContentObject.php b/Modules/LearningModule/classes/class.ilObjContentObject.php index 53ac2f35453b..ce3c1a7fee05 100755 --- a/Modules/LearningModule/classes/class.ilObjContentObject.php +++ b/Modules/LearningModule/classes/class.ilObjContentObject.php @@ -66,8 +66,15 @@ function __construct($a_id = 0,$a_call_by_reference = true) $this->tree = $DIC->repositoryTree(); $this->lng = $DIC->language(); $this->error = $DIC["ilErr"]; - $this->tpl = $DIC["tpl"]; - $this->locator = $DIC["ilLocator"]; + if (isset($DIC["tpl"])) + { + $this->tpl = $DIC["tpl"]; + } + if (isset($DIC["ilLocator"])) + { + $this->locator = $DIC["ilLocator"]; + } + // this also calls read() method! (if $a_id is set) parent::__construct($a_id,$a_call_by_reference);