From 5324155e7bc22990d1d0a775bc64e47b867f9b4d Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 3 May 2013 13:26:53 +0200 Subject: [PATCH] =?utf8?q?L.radio=5Fbutton=5Ftag:=20value=3D""=20erm=C3=B6?= =?utf8?q?glichen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Template/Plugin/L.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Template/Plugin/L.pm b/SL/Template/Plugin/L.pm index 95f4ce1d0..d9deef78e 100644 --- a/SL/Template/Plugin/L.pm +++ b/SL/Template/Plugin/L.pm @@ -116,7 +116,7 @@ sub radio_button_tag { my ($self, $name, %attributes) = _hashify(2, @_); _set_id_attribute(\%attributes, $name); - $attributes{value} = 1 unless defined $attributes{value}; + $attributes{value} = 1 unless exists $attributes{value}; my $label = delete $attributes{label}; if ($attributes{checked}) { -- 2.20.1