avoid warnings in error.log when non-defined strings

This commit is contained in:
fbsanchez 2022-03-24 13:33:18 +01:00
parent f190a85560
commit d34aafec6b
1 changed files with 1 additions and 0 deletions

View File

@ -1037,6 +1037,7 @@ sub limpia_cadena {
################################################################################
sub clean_blank {
my $input = $_[0];
return $input unless defined($input);
$input =~ s/^\s+//g;
$input =~ s/\s+$//g;
return $input;