diff --git a/apachesolr_exclude_node.module b/apachesolr_exclude_node.module index 49432e4..6ef3a8d 100644 --- a/apachesolr_exclude_node.module +++ b/apachesolr_exclude_node.module @@ -91,7 +91,7 @@ function apachesolr_exclude_node_node_update($node) { // If the user created a new revision will we insert a new record in the db. // Else update database if we need to exclude the node. // Otherwise we delete the record from the database. - if (!$node->is_new && !empty($node->revision) && $node->vid) { + if (isset($node->is_new) && !$node->is_new && !empty($node->revision) && $node->vid) { apachesolr_exclude_node_node_insert($node); } elseif (!empty($node->apachesolr_exclude_node_enabled)) {