From b0288a46d8f24b0320da588fd4142060ac75d4fe Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 24 May 2001 08:53:07 +0000 Subject: - Fixed small glitch in check_preview(). - Updated CHANGELOG. --- includes/common.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index 7e4442712..d7ae5ae63 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -73,7 +73,7 @@ function check_name($name) { } function check_preview($text) { - return check_output(check_input($text), 1); + return check_output(check_input($text)); } function check_query($text) { @@ -87,7 +87,7 @@ function check_input($text) { function check_output($text, $nl2br = 0) { global $na; - return ($text) ? (($nl2br) ? nl2br(stripslashes($text)) : stripslashes($text)) : $na; + return ($text) ? ($nl2br ? nl2br(stripslashes($text)) : stripslashes($text)) : $na; } function format_plural($count, $singular, $plural) { -- cgit v1.2.3