summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2008-10-28 12:38:03 +0000
committerdeva <deva>2008-10-28 12:38:03 +0000
commit729cff9ffa98ca750be5cc1a05bb64ebd411a521 (patch)
tree01de3bd3de255e9e6ced2e248229bd37e79d0658
parent5ccf183b325e899685e4ac6ded56e3c1dd7a26c9 (diff)
Now only non white space signatures are shown.
-rw-r--r--forum/utils/posts.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/forum/utils/posts.php b/forum/utils/posts.php
index 3a2ecc5..3b0e73b 100644
--- a/forum/utils/posts.php
+++ b/forum/utils/posts.php
@@ -70,9 +70,9 @@ class Post {
echo date("j. M Y - G:i", $this->date) . "</div>\n";
echo $indent . " <div class=\"message\">\n";
echo parse($this->message, $indent . " ") . "\n";
- if($user->signature != "\n " && $user->signature != "") {
+ if(trim($user->signature) != "") {
echo $indent . " <div class=\"signature\">\n";
- echo parse("------------------\n" . $user->signature, $indent . " ") . "\n";
+ echo parse("--------------------------\n" . $user->signature, $indent . " ") . "\n";
echo $indent . " </div>\n";
}
echo $indent . " </div>\n";