mirror of
https://github.com/smarty-php/smarty.git
synced 2025-12-15 18:18:25 +01:00
- bugfix of unneeded instanceof conditions replacement
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user