diff --git a/sites/all/modules/contrib/comment_subject/comment_subject.module b/sites/all/modules/contrib/comment_subject/comment_subject.module --- comment_subject.module +++ comment_subject.module @@ -32,7 +32,8 @@ // comment subjects can not be longer than 64 characters $subject = truncate_utf8($subject, 64, TRUE, TRUE); - if (variable_get('comment_subject_field', 1) == 1) { + if (!isset($node)) $node = node_load($comment->nid); + if (variable_get('comment_subject_field_' . $node->type, 1) == 1) { $form['subject']['#default_value'] = $subject; } else { // comment subject disabled in comment settings