mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-24 16:10:37 -06:00
Fix transformer
This commit is contained in:
parent
1fede6b802
commit
abc7bfb54c
@ -244,6 +244,12 @@ class TransactionGroupTransformer extends AbstractTransformer
|
||||
return null;
|
||||
}
|
||||
if (array_key_exists($key, $array) && null !== $array[$key]) {
|
||||
if(0 === $array[$key]) {
|
||||
return $default;
|
||||
}
|
||||
if('0' === $array[$key]) {
|
||||
return $default;
|
||||
}
|
||||
return (string)$array[$key];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user