Skip to content

Commit

Permalink
Item247: Fixed warning when value isn't defined
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@855 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
OlivierRaginel authored and OlivierRaginel committed Nov 22, 2008
1 parent effe4fa commit c6ae85f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Configure/Types/SELECT.pm
Expand Up @@ -18,7 +18,7 @@ sub prompt {
$sopts .= '<option selected="selected">' . $value . '</option>';
}
foreach my $opt ( split( /,\s*/, $opts ) ) {
if ( $opt ne $value ) {
if ( defined($value) && $opt ne $value ) {
$sopts .= '<option>' . $opt . '</option>';
}
}
Expand Down

0 comments on commit c6ae85f

Please sign in to comment.