Commit 886c8d7a authored by Dave Reid's avatar Dave Reid

by Dave Reid: Fixed assumption that {node}.status can be anything other than 0...

by Dave Reid: Fixed assumption that {node}.status can be anything other than 0 or 1. This is the core standard.
parent ddbebe6c
......@@ -67,7 +67,7 @@ function xmlsitemap_node_cron() {
$sql = "SELECT n.* FROM {node} n
LEFT JOIN {xmlsitemap_node} xn ON xn.nid = n.nid
WHERE xn.nid IS NULL
AND n.status <> 0";
AND n.status = 1";
$result = db_query_range($sql, 0, $limit);
$sitemap_changed = FALSE;
while ($node = db_fetch_object($result)) {
......
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