diff options
author | deva <deva> | 2008-10-28 12:38:03 +0000 |
---|---|---|
committer | deva <deva> | 2008-10-28 12:38:03 +0000 |
commit | 729cff9ffa98ca750be5cc1a05bb64ebd411a521 (patch) | |
tree | 01de3bd3de255e9e6ced2e248229bd37e79d0658 | |
parent | 5ccf183b325e899685e4ac6ded56e3c1dd7a26c9 (diff) |
Now only non white space signatures are shown.
-rw-r--r-- | forum/utils/posts.php | 4 |
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"; |