Check for empty arrays in array join.
This commit is contained in:
parent
5f1b2f1972
commit
98b4d45a44
@ -380,6 +380,7 @@ sub join_complex {
|
||||
|
||||
} elsif(ref($value) eq "ARRAY") {
|
||||
croak "join_complex not given a joinstr when joining an array" unless(defined($settings{"joinstr"}));
|
||||
croak "join_complex not given any content when joining an array" unless(scalar(@{$value}));
|
||||
|
||||
return join($settings{"joinstr"}, @{$value});
|
||||
} elsif(ref($value) eq "HASH") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user