aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/edittemplate.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-09-20 22:51:42 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-09-20 22:51:42 -0400
commit5e713047b4eda5b9ae6d7154729cc238d5284776 (patch)
tree19671b2d76083f3774d26f717eaf8c6fb50c4740 /IkiWiki/Plugin/edittemplate.pm
parent12eb585353660d121e48d5796d35354b66c7e522 (diff)
downloadikiwiki-5e713047b4eda5b9ae6d7154729cc238d5284776.tar
ikiwiki-5e713047b4eda5b9ae6d7154729cc238d5284776.tar.gz
avoid uninitialised value warning
Diffstat (limited to 'IkiWiki/Plugin/edittemplate.pm')
-rw-r--r--IkiWiki/Plugin/edittemplate.pm2
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");