diff --git a/libs/sysplugins/smarty_internal_compile_private_object_block_function.php b/libs/sysplugins/smarty_internal_compile_private_object_block_function.php index 69d10501..ba4d5000 100644 --- a/libs/sysplugins/smarty_internal_compile_private_object_block_function.php +++ b/libs/sysplugins/smarty_internal_compile_private_object_block_function.php @@ -24,7 +24,7 @@ class Smarty_Internal_Compile_Private_Object_Block_Function extends Smarty_Inter public function compile($args, $compiler, $tag, $methode) { $this->compiler = $compiler; - if (strlen($tag) < 5 || substr_compare($tag, 'close', -5, 5) != 0) { + if (strlen($tag) < 5 || substr($tag, -5) != 'close') { // opening tag of block plugin $this->required_attributes = array(); $this->optional_attributes = array('_any'); @@ -57,4 +57,4 @@ class Smarty_Internal_Compile_Private_Object_Block_Function extends Smarty_Inter } } -?> +?> \ No newline at end of file