From ace9d4fe5e17d173bf5349fd909c2ef9407a68ca Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Fri, 30 Apr 2010 14:04:03 +0000 Subject: [PATCH] - work around of a substr_compare bug in older PHP5 versions --- .../smarty_internal_compile_private_object_block_function.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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