From e71cf291a9b812e32d68ec5dbff29a6abca31715 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 19 Mar 2012 19:00:25 +0000 Subject: [PATCH] hide empty bits, not just null --- core/block.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/block.class.php b/core/block.class.php index 6a2844cb..149a0a13 100644 --- a/core/block.class.php +++ b/core/block.class.php @@ -53,8 +53,8 @@ class Block { $i = $this->id; $html = "
"; $h_toggler = $hidable ? " shm-toggler" : ""; - if(!is_null($h)) $html .= "

$h

"; - if(!is_null($b)) $html .= "
$b
"; + if(!empty($h)) $html .= "

$h

"; + if(!empty($b)) $html .= "
$b
"; $html .= "
\n"; return $html; }