Skip to content
Snippets Groups Projects
Commit 874d7358 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent a1ff602e
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ function comment_enable() {
// and a comment_field_attach_create_bundle() function should be added to
// handle the creation of the comment body field instance.
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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment