From: Dobrica Pavlinusic Date: Thu, 27 Aug 2009 19:58:18 +0000 (+0000) Subject: added empty option if none of them is selected X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=34ecddffb320ab1ee6bc74cbe4642b28295dc96e;p=pxelator added empty option if none of them is selected --- diff --git a/lib/PXElator/html.pm b/lib/PXElator/html.pm index 64f55fb..80a3de5 100644 --- a/lib/PXElator/html.pm +++ b/lib/PXElator/html.pm @@ -45,6 +45,7 @@ sub tt { sub select { my $name = shift; my $selected_option = shift; + unshift @_, '' unless $selected_option; return join("\n" , qq|