diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-09-20 22:51:42 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-09-20 22:51:42 -0400 |
commit | 5e713047b4eda5b9ae6d7154729cc238d5284776 (patch) | |
tree | 19671b2d76083f3774d26f717eaf8c6fb50c4740 | |
parent | 12eb585353660d121e48d5796d35354b66c7e522 (diff) | |
download | ikiwiki-5e713047b4eda5b9ae6d7154729cc238d5284776.tar ikiwiki-5e713047b4eda5b9ae6d7154729cc238d5284776.tar.gz |
avoid uninitialised value warning
-rw-r--r-- | IkiWiki/Plugin/edittemplate.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |