Commit 8cb4cf14 authored by Francesco Iannuzzelli's avatar Francesco Iannuzzelli

Exclude sitemaps for invisible topics

parent 2ead6bc6
......@@ -329,7 +329,7 @@ class Topics
$rows = array();
$sqlstr = "SELECT t.id_topic FROM topics t
INNER JOIN topics_groups tg ON t.id_group=tg.id_group AND tg.visible=1
WHERE t.visible=1 AND t.domain='' ORDER BY t.name";
WHERE t.visible=1 AND t.domain='' AND t.show_latest=1 ORDER BY t.name";
$db->QueryExe($rows, $sqlstr);
return $rows;
}
......
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