mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +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) {
|
||||
return null;
|
||||
}
|
||||
if(0 === $array[$key]) {
|
||||
return null;
|
||||
}
|
||||
if('0' === $array[$key]) {
|
||||
return null;
|
||||
}
|
||||
if (null !== $array[$key]) {
|
||||
return (string)$array[$key];
|
||||
}
|
||||
|
Reference in New Issue
Block a user