From 11c78c94cd43872c1fa380e70027d33226174aba Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Sat, 8 May 2010 14:31:57 +0200
Subject: [PATCH] correctly preview no text FS#1945

---
 inc/html.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/inc/html.php b/inc/html.php
index 4a4cf2739..c4eb62bc8 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -217,7 +217,7 @@ function html_btn($name,$id,$akey,$params,$method='get',$tooltip=''){
  *
  * @author Andreas Gohr <andi@splitbrain.org>
  */
-function html_show($txt=''){
+function html_show($txt=null){
     global $ID;
     global $REV;
     global $HIGH;
@@ -229,7 +229,7 @@ function html_show($txt=''){
         $secedit = true;
     }
 
-    if ($txt){
+    if (!is_null($txt)){
         //PreviewHeader
         echo '<br id="scroll__here" />';
         echo p_locale_xhtml('preview');
-- 
GitLab