diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2008-12-31 00:08:46 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2008-12-31 00:08:46 -0500 |
commit | 0daa4eb521a32b9ed00e99a2155416a312d478de (patch) | |
tree | 3f7a85396d7ae727fa19ade8ab58075abd8ecfa0 | |
parent | 47fc59c584fa1e3f759b70cae46a21181ca98ef9 (diff) |
make sure value is defined before using it as an array
-rw-r--r-- | IkiWiki/Plugin/websetup.pm | 3 |
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 } |