From 0daa4eb521a32b9ed00e99a2155416a312d478de Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 31 Dec 2008 00:08:46 -0500 Subject: [PATCH] make sure value is defined before using it as an array --- IkiWiki/Plugin/websetup.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } -- 2.39.5