Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12eb585
)
avoid uninitialised value warning
author
Joey Hess
<joey@kodama.kitenet.net>
Sun, 21 Sep 2008 02:51:42 +0000
(22:51 -0400)
committer
Joey Hess
<joey@kodama.kitenet.net>
Sun, 21 Sep 2008 02:51:42 +0000
(22:51 -0400)
IkiWiki/Plugin/edittemplate.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/edittemplate.pm
b/IkiWiki/Plugin/edittemplate.pm
index 4d4117c150a8c958b70af9ec17dc98671474c11b..f8b5174ff2f0d56ef37a02df9c2a0ab6794a3a17 100644
(file)
--- 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");