summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-08-06 01:15:48 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-08-06 01:15:48 -0400
commit6fb6d515247b53641c18c286312eb26b58bb9df3 (patch)
tree011c9c9b2917635b62d099667fa1d060dfcd1cf9
parent86660e9c82b67f9165cb5fabe28c341a338d8c4e (diff)
fix inverted test
-rw-r--r--IkiWiki/Plugin/attachment.pm2
1 files changed, 1 insertions, 1 deletions
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");
}
}