diff --git a/templates/themes/sitemap/info.php b/templates/themes/sitemap/info.php index e16448ee..1198c2e3 100644 --- a/templates/themes/sitemap/info.php +++ b/templates/themes/sitemap/info.php @@ -23,7 +23,7 @@ 'name' => 'url', 'type' => 'text', 'comment' => '(with trailing slash)', - 'default' => 'http://' . $_SERVER['HTTP_HOST'] . $config['root'], + 'default' => 'http://' . (isset ($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : "localhost") . $config['root'], 'size' => '20' );