fix inverted test

master
Joey Hess 2008-08-06 01:15:48 -04:00
parent 86660e9c82
commit 6fb6d51524
1 changed files with 1 additions and 1 deletions

View 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");
}
}