summaryrefslogtreecommitdiff
path: root/libs/sysplugins/smarty_internal_compile_private_registered_block.php
diff options
context:
space:
mode:
authorrodneyrehm <rodneyrehm@localhost>2011-10-05 17:11:01 +0000
committerrodneyrehm <rodneyrehm@localhost>2011-10-05 17:11:01 +0000
commitaeec0783ec7c2419397b3be25018d0df4ea907db (patch)
tree648ac3b7e7b8b889ca9cc37fd2e0b7d2f1498b5d /libs/sysplugins/smarty_internal_compile_private_registered_block.php
parent8bab7fe5224f737b6ca4e6d3a4eef48209de97c7 (diff)
downloadsmarty-aeec0783ec7c2419397b3be25018d0df4ea907db.tar.gz
smarty-aeec0783ec7c2419397b3be25018d0df4ea907db.tar.bz2
smarty-aeec0783ec7c2419397b3be25018d0df4ea907db.zip
- bugfix of problem introduced with r4342 by replacing strlen() with isset()
Diffstat (limited to 'libs/sysplugins/smarty_internal_compile_private_registered_block.php')
-rw-r--r--libs/sysplugins/smarty_internal_compile_private_registered_block.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/sysplugins/smarty_internal_compile_private_registered_block.php b/libs/sysplugins/smarty_internal_compile_private_registered_block.php
index f7dd74ba..9fed36c3 100644
--- a/libs/sysplugins/smarty_internal_compile_private_registered_block.php
+++ b/libs/sysplugins/smarty_internal_compile_private_registered_block.php
@@ -36,7 +36,7 @@ class Smarty_Internal_Compile_Private_Registered_Block extends Smarty_Internal_C
*/
public function compile($args, $compiler, $parameter, $tag)
{
- if (!isset($tag[6]) || substr($tag,-5) != 'close') {
+ if (!isset($tag[5]) || substr($tag,-5) != 'close') {
// opening tag of block plugin
// check and get attributes
$_attr = $this->getAttributes($compiler, $args);