bolt / Sitemap

Bolt Sitemap extension - create XML sitemaps for your Bolt website.
MIT License
19 stars 20 forks source link

PHP in_array() errors occur when config ignore value is blank #22

Closed Maelstromeous closed 7 years ago

Maelstromeous commented 8 years ago

Sample config:

# sitemap settings

template: sitemap.twig
xml_template: sitemap_xml.twig

ignore:

## ignore by "slug" of contenttype
ignore_contenttype:
  - keyfacts
  - testimonials

If ignore: is kept like it is above, it will result in the following error currently:

Warning: in_array() expects parameter 2 to be array, null given in /{PATH}/extensions/vendor/bolt/sitemap/src/SitemapExtension.php on line 177

Commenting out ignore with #ignore resolves the issue.

bobdenotter commented 7 years ago

This has been fixed. Closing for now, feel free to re-open, if I missed something.