Skip to content

Commit

Permalink
Item13186: Still unable to save the configuration
Browse files Browse the repository at this point in the history
 - Probably a copy/paste error.

 Also, avoid undef errors in the bootstrap trace logs.
  • Loading branch information
gac410 committed Jan 11, 2015
1 parent 3b2273e commit 48205e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion core/lib/Foswiki/Configure/Load.pm
Expand Up @@ -646,7 +646,9 @@ sub _bootstrapWebSettings {
# configuration, then it will not be set correctly.
my $path_info = $ENV{'PATH_INFO'}
|| ''; #SMELL Sometimes PATH_INFO appears to be undefined.
print STDERR "AUTOCONFIG: REQUEST_URI is $ENV{REQUEST_URI} \n" if (TRAUTO);
print STDERR "AUTOCONFIG: REQUEST_URI is "
. ( $ENV{REQUEST_URI} || '(undef)' ) . "\n"
if (TRAUTO);
print STDERR "AUTOCONFIG: SCRIPT_URI is "
. ( $ENV{SCRIPT_URI} || '(undef)' ) . " \n"
if (TRAUTO);
Expand Down
4 changes: 2 additions & 2 deletions core/lib/Foswiki/Configure/Wizards/Save.pm
Expand Up @@ -430,14 +430,14 @@ sub _generateLSC {

# An undef value and undefok will suppress the item in LSC
return ()
if ( $vs->{item}->CHECK_option('undefok') );
if ( $vs->CHECK_option('undefok') );

}
elsif ( $datum eq '' ) {

# Treat '' as undef unless emptyok
return ()
if ( $vs->{item}->CHECK_option('emptyok') );
unless ( $vs->CHECK_option('emptyok') );
}
my $d = Foswiki::Configure::Reporter::uneval($datum);
push( @dump, "\$Foswiki::cfg$keys = $d;\n" );
Expand Down

0 comments on commit 48205e3

Please sign in to comment.