avoid uninitialised value warning

master
Joey Hess 2008-09-20 22:51:42 -04:00
parent 12eb585353
commit 5e713047b4
1 changed files with 1 additions and 1 deletions

View File

@ -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");