Commit 70f7a190 authored by Dave Reid's avatar Dave Reid

by Dave Reid: Exclude entities with id = 0 from index counts.

parent 6365aead
......@@ -969,6 +969,7 @@ function xmlsitemap_get_link_type_indexed_status($entity_type, $bundle = '') {
$total = db_select($info['base table']);
$total->addField('xmlsitemap', $info['object keys']['id']);
$total->condition($info['object keys']['id'], 0, '>');
if (!empty($info['object keys']['bundle'])) {
$total->condition($info['object keys']['bundle'], $bundle);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment