- Patch #682552 by mradcliffe, jhodgdon: fixed notices.

merge-requests/26/head
Dries Buytaert 2010-04-17 12:54:02 +00:00
parent a1ff602eb6
commit 874d735891
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ function comment_enable() {
// and a comment_field_attach_create_bundle() function should be added to // and a comment_field_attach_create_bundle() function should be added to
// handle the creation of the comment body field instance. // handle the creation of the comment body field instance.
foreach (node_type_get_types() as $type => $info) { foreach (node_type_get_types() as $type => $info) {
if (!($info->is_new) && !($info->disabled) && !field_info_instance('comment', 'comment_body', 'comment_node_' . $info->type)) { if (!isset($info->is_new) && !isset($info->disabled) && !field_info_instance('comment', 'comment_body', 'comment_node_' . $info->type)) {
_comment_body_field_instance_create($info); _comment_body_field_instance_create($info);
} }
} }