From: hickert Date: Wed, 19 Jul 2006 04:46:30 +0000 (+0000) Subject: Skip closing tag X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bdf0311762508392d3ad541eb380c394f49232c3;p=gosa.git Skip closing tag git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4212 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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']);