summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/node/content_types.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc
index 0d8d0adec..71787ff2f 100644
--- a/modules/node/content_types.inc
+++ b/modules/node/content_types.inc
@@ -129,7 +129,7 @@ function node_type_form(&$form_state, $type = NULL) {
$form['submission']['body_label'] = array(
'#title' => t('Body field label'),
'#type' => 'textfield',
- '#default_value' => $type->body_label,
+ '#default_value' => isset($type->body_label) ? $type->body_label : '',
'#description' => t('To omit the body field for this content type, remove any text and leave this field blank.'),
);
$form['submission']['min_word_count'] = array(