Skip to content

Commit

Permalink
Item13066: Avoid an undef error reported in 2010
Browse files Browse the repository at this point in the history
  • Loading branch information
gac410 committed Dec 1, 2014
1 parent 3884208 commit ca6ca74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Configure/FileUtil.pm
Expand Up @@ -226,7 +226,7 @@ sub checkCanCreateFile {
close($in_file);
unlink $name if ( -e $name );

unless ( $txt2 eq $txt1 ) {
unless ( defined $txt2 && $txt2 eq $txt1 ) {
return 'Could not write and then read ' . $name;
}
return '';
Expand Down

0 comments on commit ca6ca74

Please sign in to comment.