fix inverted test
authorJoey Hess <joey@kodama.kitenet.net>
Wed, 6 Aug 2008 05:15:48 +0000 (01:15 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Wed, 6 Aug 2008 05:15:48 +0000 (01:15 -0400)
IkiWiki/Plugin/attachment.pm

index b81870ffb0ccef5711882f7d4dd045de3b6bff96..66b79cd824bc847ac0af1a84b546e7ebd746bf5f 100644 (file)
@@ -143,7 +143,7 @@ sub formbuilder_setup (@) { #{{{
                                IkiWiki::userinfo_set($user_name, "allowed_attachments",
                                $form->field("allowed_attachments")) ||
                                        error("failed to set allowed_attachments");
-                               if (length $form->field("allowed_attachments")) {
+                               if (length $form->field("allowed_attachments")) {
                                        $form->field(name => "allowed_attachments", type => "hidden");
                                }
                        }