diff --git a/libs/sysplugins/smarty_internal_compile_private_object_function.php b/libs/sysplugins/smarty_internal_compile_private_object_function.php index 4d37a9e0..7f78a421 100644 --- a/libs/sysplugins/smarty_internal_compile_private_object_function.php +++ b/libs/sysplugins/smarty_internal_compile_private_object_function.php @@ -49,7 +49,7 @@ class Smarty_Internal_Compile_Private_Object_Function extends Smarty_Internal_Co unset($_attr[ 'assign' ]); } // method or property ? - if (method_exists($compiler->smarty->registered_objects[ $tag ][ 0 ], $method)) { + if (is_callable(array($compiler->smarty->registered_objects[ $tag ][ 0 ], $method))) { // convert attributes into parameter array string if ($compiler->smarty->registered_objects[ $tag ][ 2 ]) { $_paramsArray = array();