From a3c1a152ca552b5527af5763242db0bc2ec1dd02 Mon Sep 17 00:00:00 2001 From: Andrey Shpota Date: Thu, 4 Aug 2016 12:28:19 +0300 Subject: [PATCH] fix define method in registered objects --- .../smarty_internal_compile_private_object_function.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();