diff --git a/libs/sysplugins/smarty_internal_compile_include.php b/libs/sysplugins/smarty_internal_compile_include.php index dc518179..e9277614 100644 --- a/libs/sysplugins/smarty_internal_compile_include.php +++ b/libs/sysplugins/smarty_internal_compile_include.php @@ -68,7 +68,7 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase { $compiler->template->properties['file_dependency'] = array_merge($compiler->template->properties['file_dependency'], $prop['file_dependency']); } if (isset($prop['function'])) { - $compiler->template->properties['function'] = array_merge($compiler->template->properties['function'], $prop['function']); + $compiler->template->properties['function'] = array_merge((array)$compiler->template->properties['function'], $prop['function']); } $has_compiled_template = true; }