diff options
| author | Christian Fowler <cfowler2@wcpss.net> | 2013-04-19 13:55:47 -0400 |
|---|---|---|
| committer | Christian Fowler <cfowler2@wcpss.net> | 2013-04-19 13:55:47 -0400 |
| commit | 5b5c689bd4ab57eba8c674f603f564ff0ac889ba (patch) | |
| tree | d41917ecc4fd2226c612cccdd519d1f5f4813d74 /smartyplugins/block.box.php | |
| parent | 055226b0dfa5140473725a8d5fee4bfb78fe1d4c (diff) | |
| download | themes-5b5c689bd4ab57eba8c674f603f564ff0ac889ba.tar.gz themes-5b5c689bd4ab57eba8c674f603f564ff0ac889ba.tar.bz2 themes-5b5c689bd4ab57eba8c674f603f564ff0ac889ba.zip | |
tweak block_box to only ouput on final invocation
Diffstat (limited to 'smartyplugins/block.box.php')
| -rw-r--r-- | smartyplugins/block.box.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/smartyplugins/block.box.php b/smartyplugins/block.box.php index aba05be..1f5a510 100644 --- a/smartyplugins/block.box.php +++ b/smartyplugins/block.box.php @@ -18,7 +18,10 @@ * @uses smarty_function_escape_special_chars() * @todo somehow make the variable that is contained within $iselect global --> this will allow importing of outside variables not set in $_REQUEST */ -function smarty_block_box($params, $content, &$gBitSmarty) { +function smarty_block_box($params, $pContent, &$gBitSmarty) { + if( empty( $pContent )) { + return ''; + } $atts = ''; foreach( $params as $key => $val ) { switch( $key ) { @@ -38,7 +41,7 @@ function smarty_block_box($params, $content, &$gBitSmarty) { break; } } - $gBitSmarty->assign( 'content',$content ); + $gBitSmarty->assign( 'content',$pContent ); $gBitSmarty->assign( 'atts',$atts ); return $gBitSmarty->fetch( 'bitpackage:kernel/box.tpl' ); } |
