summaryrefslogtreecommitdiff
path: root/modules/comment.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment.module')
-rw-r--r--modules/comment.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment.module b/modules/comment.module
index 13fedb752..50478287e 100644
--- a/modules/comment.module
+++ b/modules/comment.module
@@ -1141,7 +1141,7 @@ function comment_validate($edit) {
}
// Validate the comment's body.
- if ($edit['comment'] == '') {
+ if (trim($edit['comment']) == '') {
form_set_error('comment', t('The body of your comment is empty.'));
}