Code

Skip closing tag
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 Jul 2006 04:46:30 +0000 (04:46 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 Jul 2006 04:46:30 +0000 (04:46 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4212 594d385d-05f5-0310-b6e9-bd551577e9d8

include/smarty/plugins/block.render.php

index 96381c9f064bf9ac5f9d102991f8c7c5e8ad290a..daceb8e7bffd9b1c38cfe90214c458deab662e97 100755 (executable)
@@ -5,6 +5,12 @@ function smarty_block_render($params, $text, &$smarty)
        $text = stripslashes($text);
        $acl = "";
 
+       /* Skip closing tag </render> */        
+       if(empty($text)) {
+               return("");
+       }
+
+       /* Get acl parameter */
        if (isset($params['acl'])) {
                $acl = $params['acl'];
                unset($params['acl']);