From bdf0311762508392d3ad541eb380c394f49232c3 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 19 Jul 2006 04:46:30 +0000 Subject: [PATCH] Skip closing tag git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4212 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/smarty/plugins/block.render.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/smarty/plugins/block.render.php b/include/smarty/plugins/block.render.php index 96381c9f0..daceb8e7b 100755 --- a/include/smarty/plugins/block.render.php +++ b/include/smarty/plugins/block.render.php @@ -5,6 +5,12 @@ function smarty_block_render($params, $text, &$smarty) $text = stripslashes($text); $acl = ""; + /* Skip closing tag */ + if(empty($text)) { + return(""); + } + + /* Get acl parameter */ if (isset($params['acl'])) { $acl = $params['acl']; unset($params['acl']); -- 2.30.2