diff --git a/README.md b/README.md index 3006be7..c5e5cc2 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,11 @@ Easy XML sitemap ================ -Provides XML sitemap conforming to Google's recommendations and sitemaps.org protocol. -[Google's recommendations](https://support.google.com/webmasters/answer/2620865) -[sitemaps.org protocol](http://www.sitemaps.org/protocol.html) +Provides XML sitemap conforming to Google's recommendations and sitemaps.org protocol. + +[Google's recommendations](https://support.google.com/webmasters/answer/2620865) + +[sitemaps.org protocol](http://www.sitemaps.org/protocol.html) New in version 1.0.12 - integration with "SEO Meta Tags" module - exclude from sitemap any page have "noindex" in meta-tag "robots". diff --git a/easy_xmlsitemap.info b/easy_xmlsitemap.info index 7412c25..fc3d804 100644 --- a/easy_xmlsitemap.info +++ b/easy_xmlsitemap.info @@ -4,5 +4,5 @@ package = SEO backdrop = 1.x type = module configure = admin/config/metadata/easy_xmlsitemap -version = 1.0.14 +version = 1.0.15 diff --git a/easy_xmlsitemap.module b/easy_xmlsitemap.module index feb56cc..98f4a5b 100644 --- a/easy_xmlsitemap.module +++ b/easy_xmlsitemap.module @@ -226,10 +226,14 @@ function easy_xmlsitemap_build_node_items($base_url) { $output = ''; $excluded_types = $config->get('excluded_types'); $types = array_values($excluded_types); - + foreach (array_keys($types, 0, true) as $key) { unset($types[$key]); } + // @todo - fix fake array + if (empty($types)) { + $types = array('nonexistent_type' => 'nonexistent_type'); + } $frontpage_nid = easy_xmlsitemap_get_frontpage_nid();