summaryrefslogtreecommitdiff
path: root/templates/themes
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-07-19 06:20:22 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-07-19 06:20:22 -0400
commit19766c4e0e9238be1cd7b2610500257e7aea6137 (patch)
tree2e81313d5f76708f8d314afdac0c7d851167f52f /templates/themes
parente4bd9a6886af2a812ccc909d8ad957df1bdc5d2b (diff)
Bugfix: Warning when in CLI-mode
Diffstat (limited to 'templates/themes')
-rw-r--r--templates/themes/sitemap/info.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/themes/sitemap/info.php b/templates/themes/sitemap/info.php
index e16448ee..43b529fa 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' => (isset($_SERVER['HTTP_HOST']) ? 'http://' . $_SERVER['HTTP_HOST'] . $config['root'] : ''),
'size' => '20'
);