summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2010-05-08 14:31:57 +0200
committerAndreas Gohr <andi@splitbrain.org>2010-05-08 14:31:57 +0200
commit11c78c94cd43872c1fa380e70027d33226174aba (patch)
tree34568e9ce599b92af0d817007ae697a2f3b8bbd3 /inc/html.php
parentbe66694cc5d4ff7cad1467f20ab1e55611c97ff6 (diff)
downloadrpg-11c78c94cd43872c1fa380e70027d33226174aba.tar.gz
rpg-11c78c94cd43872c1fa380e70027d33226174aba.tar.bz2
correctly preview no text FS#1945
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php4
1 files 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');