work around strange problem with banned_users

Its value was being ignored. Some kind of formbuilder bug?
Anyway, prefixing all keys with a section seems like a good idea
generally, in case there's ever overlap.
master
Joey Hess 2008-08-03 21:06:13 -04:00
parent 4b79a43db6
commit 6d15912e8f
1 changed files with 2 additions and 2 deletions

View File

@ -134,11 +134,11 @@ sub showfields ($$$@) { #{{{
}
# multiple plugins can have the same field
my $name=defined $plugin ? $plugin.".".$key : $key;
my $name=defined $plugin ? $plugin.".".$key : $section.".".$key;
my $value=$config{$key};
if ($info{safe} && (ref $config{$key} eq 'ARRAY' || ref $info{example} eq 'ARRAY')) {
if ($info{safe} && (ref $value eq 'ARRAY' || ref $info{example} eq 'ARRAY')) {
push @{$value}, "", ""; # blank items for expansion
}