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