Commit 23d7d722 authored by gbyte.co's avatar gbyte.co

Issue #2846875 by caxy4, shawn_smiley: Invalid argument supplied for foreach()...

Issue #2846875 by caxy4, shawn_smiley: Invalid argument supplied for foreach() SitemapGenerator.php:103
parent cb01f4da
......@@ -413,7 +413,7 @@ class Simplesitemap {
$custom_links = $this->configFactory
->get('simple_sitemap.custom')
->get('links');
return $custom_links;
return $custom_links !== NULL ? $custom_links : [];
}
/**
......
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