Fix null pointer

This commit is contained in:
James Cole 2020-06-23 15:30:02 +02:00
parent 88724be3aa
commit 7617fe3510
2 changed files with 6 additions and 2 deletions

View File

@ -158,7 +158,7 @@ class IndexController extends Controller
}
foreach ($piggyBanks as $groupOrder => $group) {
$groupId = $group['object_group_id'];
$piggyBanks[$groupOrder]['sums'] = $sums[$groupId];
$piggyBanks[$groupOrder]['sums'] = $sums[$groupId] ?? [];
}
return $piggyBanks;

View File

@ -39,7 +39,11 @@ Several alpha and beta releases preceded this release.
- Expanded API for piggy banks to support object groups.
### Known issues
- You may run into date conversion problems if you're living on the right side of GMT. If transactions appear a day early, let me know.
- You may run into date conversion problems if you're living on the right side of GMT. If transactions appear a day early, let me know.
### Notes
- From this release on, the Dockerfile and default configuration will install MySQL (using MariaDB) instead of PostgreSQL.
## [5.2.8 (API 1.1.0)] - 2020-06-02