Bugfix: Warning when in CLI-mode

This commit is contained in:
Michael Foster 2013-07-19 06:20:22 -04:00
parent e4bd9a6886
commit 19766c4e0e

View File

@ -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'
);