From de1c51958c903f66cd2f667e4b2a5a5749570dad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Tue, 25 Sep 2007 12:07:14 +0000 Subject: #176367 by chx: not all node type have body labels, so this might not be set --- modules/node/content_types.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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( -- cgit v1.2.3