summaryrefslogtreecommitdiff
path: root/src/build_post.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/build_post.php')
-rw-r--r--src/build_post.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/build_post.php b/src/build_post.php
index 6d95be1..2685d69 100644
--- a/src/build_post.php
+++ b/src/build_post.php
@@ -19,7 +19,8 @@ function build_post_subject($listtag, $forumtag, $subject) {
}
// ensure nonempty subject
- if (trim($subject) == '') {
+ $subject = trim($subject);
+ if ($subject == '') {
$subject = '(no subject)';
}