summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 0c56e9929..cf7771212 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -316,7 +316,7 @@ function comment_post($edit) {
$edit['subject'] = truncate_utf8(strip_tags($edit['comment']), 29);
}
- if (!form_has_errors()) {
+ if (!form_get_errors()) {
// Check for duplicate comments. Note that we have to use the
// validated/filtered data to perform such check.
@@ -1255,7 +1255,7 @@ function theme_comment_form($edit, $title) {
$form .= form_submit(t('Preview comment'));
}
- if (!form_has_errors()) {
+ if (!form_get_errors()) {
$form .= form_submit(t('Post comment'));
}