From 6fb6d515247b53641c18c286312eb26b58bb9df3 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 6 Aug 2008 01:15:48 -0400 Subject: [PATCH] fix inverted test --- IkiWiki/Plugin/attachment.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IkiWiki/Plugin/attachment.pm b/IkiWiki/Plugin/attachment.pm index b81870ffb..66b79cd82 100644 --- a/IkiWiki/Plugin/attachment.pm +++ b/IkiWiki/Plugin/attachment.pm @@ -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"); } } -- 2.26.2