]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
avoid uninitialised value warning
authorJoey Hess <joey@kodama.kitenet.net>
Sun, 21 Sep 2008 02:51:42 +0000 (22:51 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Sun, 21 Sep 2008 02:51:42 +0000 (22:51 -0400)
IkiWiki/Plugin/edittemplate.pm

index 4d4117c150a8c958b70af9ec17dc98671474c11b..f8b5174ff2f0d56ef37a02df9c2a0ab6794a3a17 100644 (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");