fix inverted test
[ikiwiki.git] / 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");
                                }
                        }