- bugfix of unneeded instanceof conditions replacement

This commit is contained in:
uwetews
2015-08-23 05:33:04 +02:00
parent 189b2af115
commit 3daf187fb1
4 changed files with 4 additions and 4 deletions

View File

@@ -72,7 +72,7 @@ class Smarty_Internal_Resource_Php extends Smarty_Internal_Resource_File
throw new SmartyException("PHP templates are disabled");
}
if (!$source->exists) {
if ($_template->parent->_objType == 2) {
if (isset($_template->parent) && $_template->parent->_objType == 2) {
$parent_resource = " in '{$_template->parent->template_resource}'";
} else {
$parent_resource = '';