X-Git-Url: http://git.shiar.net/perl/html-form-simple.git/blobdiff_plain/473797e7d8bb0922a1e56294dff2ad9e82202593..0e9c7322ba3c935e9d81f28e321297816af90f2f:/lib/HTML/Form/Simple.pm
diff --git a/lib/HTML/Form/Simple.pm b/lib/HTML/Form/Simple.pm
index 440f404..152efe9 100644
--- a/lib/HTML/Form/Simple.pm
+++ b/lib/HTML/Form/Simple.pm
@@ -202,7 +202,7 @@ sub check {
my ($name, $label, $checked, $attr) = $self->_attr(3, @_);
my $rows = defined $label ? ref $label eq 'ARRAY' ? [@$label] : [$label] : [{}];
- ref $_ eq 'HASH' or $_ = {label => $_} for @$rows;
+ $_ = ref $_ eq 'HASH' ? {%$_} : {label => $_} for @$rows;
if (defined $checked) {
if (ref $checked eq 'ARRAY') {
$rows->[$_]->{checked} = $checked->[$_] for 0 .. $#$rows;