mason is more strict about variables - patch from Richard Siddall, thanks
authorivan <ivan>
Tue, 22 Apr 2003 17:55:09 +0000 (17:55 +0000)
committerivan <ivan>
Tue, 22 Apr 2003 17:55:09 +0000 (17:55 +0000)
httemplate/edit/part_export.cgi

index 839a114..4defbc8 100644 (file)
@@ -60,7 +60,7 @@ my $widget = new HTML::Widgets::SelectLayers(
         foreach my $select_option ( @{$optinfo->{options}} ) {
           #if ( ref($select_option) ) {
           #} else {
         foreach my $select_option ( @{$optinfo->{options}} ) {
           #if ( ref($select_option) ) {
           #} else {
-            $selected = $select_option eq $value ? ' SELECTED' : '';
+            my $selected = $select_option eq $value ? ' SELECTED' : '';
             $html .= qq!<OPTION VALUE="$select_option"$selected>!.
                      qq!$select_option</OPTION>!;
           #}
             $html .= qq!<OPTION VALUE="$select_option"$selected>!.
                      qq!$select_option</OPTION>!;
           #}