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