diff options
author | Michael Hamann <michael@content-space.de> | 2010-11-02 22:56:12 +0100 |
---|---|---|
committer | Michael Hamann <michael@content-space.de> | 2010-11-02 22:56:12 +0100 |
commit | 6d3e62599b5cf46a86b28e75049679f94025f26f (patch) | |
tree | 0a0ccc67c588267a3a9dc97835ebb780750052ef | |
parent | 37ba24e45987e30969f8d7230c25384471bb1b11 (diff) | |
download | rpg-6d3e62599b5cf46a86b28e75049679f94025f26f.tar.gz rpg-6d3e62599b5cf46a86b28e75049679f94025f26f.tar.bz2 |
Only add successfully created sitemap items to the sitemap
-rw-r--r-- | inc/Sitemapper.php | 4 |
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); |