From 81bfe74a8a6f7f8e43eecaeb1ef1b34099fcaba1 Mon Sep 17 00:00:00 2001 From: Gorrie Coe Date: Thu, 12 Apr 2018 14:52:04 +1200 Subject: [PATCH] Fixed sitemap from not rendering if not defined in config This gives the opportunity for extends to update the sitemap url --- src/Robots.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Robots.php b/src/Robots.php index dde07ed..bf66bb5 100755 --- a/src/Robots.php +++ b/src/Robots.php @@ -89,7 +89,7 @@ public function getSitemap() // Check if sitemap is configured $sitemaps = $this->config()->get('sitemap'); if (!isset($sitemaps)) { - return ''; + $sitemaps = []; } if (is_string($sitemaps)) {