mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Catch things that should be NULL
This commit is contained in:
parent
3f2560c8e5
commit
6e3381844e
@ -242,6 +242,12 @@ class TransactionGroupTransformer extends AbstractTransformer
|
||||
if (null === $array[$key] && null === $default) {
|
||||
return null;
|
||||
}
|
||||
if(0 === $array[$key]) {
|
||||
return null;
|
||||
}
|
||||
if('0' === $array[$key]) {
|
||||
return null;
|
||||
}
|
||||
if (null !== $array[$key]) {
|
||||
return (string)$array[$key];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user