summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2008-12-31 00:08:46 -0500
committerJoey Hess <joey@gnu.kitenet.net>2008-12-31 00:08:46 -0500
commit0daa4eb521a32b9ed00e99a2155416a312d478de (patch)
tree3f7a85396d7ae727fa19ade8ab58075abd8ecfa0 /IkiWiki/Plugin
parent47fc59c584fa1e3f759b70cae46a21181ca98ef9 (diff)
make sure value is defined before using it as an array
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/websetup.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/websetup.pm b/IkiWiki/Plugin/websetup.pm
index a47c29976..2d978c5b4 100644
--- a/IkiWiki/Plugin/websetup.pm
+++ b/IkiWiki/Plugin/websetup.pm
@@ -138,7 +138,8 @@ sub showfields ($$$@) {
my $value=$config{$key};
- if ($info{safe} && (ref $value eq 'ARRAY' || ref $info{example} eq 'ARRAY')) {
+ if ($info{safe} && defined $value &&
+ (ref $value eq 'ARRAY' || ref $info{example} eq 'ARRAY')) {
$value=[@{$value}, "", ""]; # blank items for expansion
}