summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc4
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) {