mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-02 05:29:12 -06:00
Merge pull request #6906 from firefly-iii/fix-clean-string
Add some extra catches and remove debug info
This commit is contained in:
commit
c697d2aa13
@ -90,8 +90,9 @@ trait ConvertsDataTypes
|
||||
if (null === $string) {
|
||||
return null;
|
||||
}
|
||||
var_dump($string);
|
||||
|
||||
if('' === $string) {
|
||||
return '';
|
||||
}
|
||||
$search = [
|
||||
"\0", // NUL
|
||||
"\f", // form feed
|
||||
@ -153,6 +154,9 @@ trait ConvertsDataTypes
|
||||
if (null === $string) {
|
||||
return null;
|
||||
}
|
||||
if('' === $string) {
|
||||
return '';
|
||||
}
|
||||
return trim($string);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user