diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-05-24 08:53:07 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-05-24 08:53:07 +0000 |
commit | b0288a46d8f24b0320da588fd4142060ac75d4fe (patch) | |
tree | c345fcc5699d64730e23847cd2ed1494b11d485f /includes | |
parent | 886f653e21c4ea084103c2471e5410bc17d09d7d (diff) | |
download | brdo-b0288a46d8f24b0320da588fd4142060ac75d4fe.tar.gz brdo-b0288a46d8f24b0320da588fd4142060ac75d4fe.tar.bz2 |
- Fixed small glitch in check_preview().
- Updated CHANGELOG.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |