From 5e713047b4eda5b9ae6d7154729cc238d5284776 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 20 Sep 2008 22:51:42 -0400 Subject: [PATCH 1/1] avoid uninitialised value warning --- IkiWiki/Plugin/edittemplate.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IkiWiki/Plugin/edittemplate.pm b/IkiWiki/Plugin/edittemplate.pm index 4d4117c15..f8b5174ff 100644 --- a/IkiWiki/Plugin/edittemplate.pm +++ b/IkiWiki/Plugin/edittemplate.pm @@ -71,7 +71,7 @@ sub formbuilder (@) { #{{{ my $form=$params{form}; return if $form->field("do") ne "create" || - length $form->field("editcontent"); + (defined $form->field("editcontent") && length $form->field("editcontent")); my $page=$form->field("page"); -- 2.45.0