summaryrefslogtreecommitdiff
path: root/inc/Sitemapper.php
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2010-11-02 22:56:12 +0100
committerMichael Hamann <michael@content-space.de>2010-11-02 22:56:12 +0100
commit6d3e62599b5cf46a86b28e75049679f94025f26f (patch)
tree0a0ccc67c588267a3a9dc97835ebb780750052ef /inc/Sitemapper.php
parent37ba24e45987e30969f8d7230c25384471bb1b11 (diff)
downloadrpg-6d3e62599b5cf46a86b28e75049679f94025f26f.tar.gz
rpg-6d3e62599b5cf46a86b28e75049679f94025f26f.tar.bz2
Only add successfully created sitemap items to the sitemap
Diffstat (limited to 'inc/Sitemapper.php')
-rw-r--r--inc/Sitemapper.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/Sitemapper.php b/inc/Sitemapper.php
index 52c71c545..47a3fedb5 100644
--- a/inc/Sitemapper.php
+++ b/inc/Sitemapper.php
@@ -54,7 +54,9 @@ class Sitemapper {
//skip hidden, non existing and restricted files
if(isHiddenPage($id)) continue;
if(auth_aclcheck($id,'','') < AUTH_READ) continue;
- $items[] = SitemapItem::createFromID($id);
+ $item = SitemapItem::createFromID($id);
+ if ($item !== NULL)
+ $items[] = $item;
}
$eventData = array('items' => &$items, 'sitemap' => &$sitemap);