fix inverted test
parent
86660e9c82
commit
6fb6d51524
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue