mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Fix join warning by converting undefs to empty strings
This commit is contained in:
@@ -83,7 +83,8 @@ my $d;
|
||||
my $fh = "DIRS";
|
||||
&open_tempfile($fh, ">$directories_file");
|
||||
foreach $d (@{$_[0]}) {
|
||||
&print_tempfile($fh, join("\t", @$d),"\n");
|
||||
my @safed = map { defined($_) ? $_ : "" } @$d;
|
||||
&print_tempfile($fh, join("\t", @safed),"\n");
|
||||
}
|
||||
&close_tempfile($fh);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user