Fix a tri-value bug

This commit is contained in:
Tom Eastep 2011-02-11 16:53:49 -08:00
parent af363888ab
commit 9e921beb49

View File

@ -2022,9 +2022,10 @@ sub default_log_level( $$ ) {
#
sub check_trivalue( $$ ) {
my ( $var, $default) = @_;
my $val = lc( $config{$var} || '' );
my $val = $config{$var};
if ( defined $val ) {
$val = lc $val;
if ( $val eq 'yes' || $val eq 'on' ) {
$config{$var} = 'on';
} elsif ( $val eq 'no' || $val eq 'off' ) {