Skip to content

Commit

Permalink
correctly preview no text FS#1945
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed May 8, 2010
1 parent be66694 commit 11c78c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/html.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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');
Expand Down

0 comments on commit 11c78c9

Please sign in to comment.