Skip to content

Commit

Permalink
Fixed sitemap from not rendering if not defined in config
Browse files Browse the repository at this point in the history
This gives the opportunity for extends to update the sitemap url
  • Loading branch information
gorriecoe committed Apr 12, 2018
1 parent 0330ee6 commit 81bfe74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Robots.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 81bfe74

Please sign in to comment.