mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 01:06:46 +00:00
Clean up balance methods.
This commit is contained in:
@@ -38,7 +38,7 @@ trait BasicDataSupport
|
||||
*/
|
||||
protected function isInArray(array $array, int $entryId)
|
||||
{
|
||||
return $array[$entryId] ?? '0';
|
||||
return $array[$entryId]['balance'] ?? '0';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -46,6 +46,6 @@ trait BasicDataSupport
|
||||
*/
|
||||
protected function isInArrayDate(array $array, int $entryId): ?Carbon
|
||||
{
|
||||
return $array[$entryId] ?? null;
|
||||
return $array[$entryId]['balance'] ?? null;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user