diff options
author | Simon McVittie <smcv@debian.org> | 2010-12-21 14:21:53 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2010-12-25 21:35:06 +0000 |
commit | eb58b51bb0d006f8e81a8c8a2b9913a0d7d4087f (patch) | |
tree | 1ab5c79e7edc1414152fb5bf699024d009e9911c | |
parent | 326c4d6af2fbcbdf9b1487d584f03e6f63e5597d (diff) | |
download | ikiwiki-eb58b51bb0d006f8e81a8c8a2b9913a0d7d4087f.tar ikiwiki-eb58b51bb0d006f8e81a8c8a2b9913a0d7d4087f.tar.gz |
checkconfig: don't warn if $config{url} is undef
The warning was "Use of uninitialized value $IkiWiki::config{"url"} in
length" when running a modified t/tag.t.
-rw-r--r-- | IkiWiki.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index 926d42a49..93d2c326d 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -544,7 +544,7 @@ sub checkconfig () { error(gettext("Must specify url to wiki with --url when using --cgi")); } - if (length $config{url}) { + if (defined $config{url} && length $config{url}) { eval q{use URI}; my $baseurl = URI->new($config{url}); |