mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
avoid warnings in error.log when non-defined strings
This commit is contained in:
parent
f190a85560
commit
d34aafec6b
@ -1037,6 +1037,7 @@ sub limpia_cadena {
|
|||||||
################################################################################
|
################################################################################
|
||||||
sub clean_blank {
|
sub clean_blank {
|
||||||
my $input = $_[0];
|
my $input = $_[0];
|
||||||
|
return $input unless defined($input);
|
||||||
$input =~ s/^\s+//g;
|
$input =~ s/^\s+//g;
|
||||||
$input =~ s/\s+$//g;
|
$input =~ s/\s+$//g;
|
||||||
return $input;
|
return $input;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user