Index: xapian.module =================================================================== --- xapian.module (Revision 5800) +++ xapian.module (Revision 5859) @@ -833,17 +833,17 @@ $exclusions = array_values(variable_get('xapian_excluded_nodes', array())); while ($node = db_fetch_object($result)) { - $node = node_load($node->nid, NULL, TRUE); - if ($node) { - if (in_array($node->type, $exclusions)) { + $new_node = node_load($node->nid, NULL, TRUE); + if ($new_node) { + if (in_array($new_node->type, $exclusions)) { // None indexable a node, log and clear it from the queue - xapian_remove_node_from_index($node); + xapian_remove_node_from_index($new_node); db_query('DELETE FROM {xapian_index_queue} WHERE nid = %d', $node->nid); $failed++; } else { // Found a node, index it - if (_xapian_index_node($node)) { + if (_xapian_index_node($new_node)) { $indexed++; } else {