From: Joey Hess Date: Sun, 21 Sep 2008 02:51:42 +0000 (-0400) Subject: avoid uninitialised value warning X-Git-Tag: 2.65~40 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/5e713047b4eda5b9ae6d7154729cc238d5284776?ds=inline;hp=--cc avoid uninitialised value warning --- 5e713047b4eda5b9ae6d7154729cc238d5284776 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");