mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-13 16:00:13 +00:00
Catch undefined index in account repository.
This commit is contained in:
@@ -507,7 +507,7 @@ class AccountRepository implements AccountRepositoryInterface
|
|||||||
*/
|
*/
|
||||||
protected function validOpeningBalanceData(array $data): bool
|
protected function validOpeningBalanceData(array $data): bool
|
||||||
{
|
{
|
||||||
$data['openingBalance'] = strval($data['openingBalance']);
|
$data['openingBalance'] = strval($data['openingBalance'] ?? '');
|
||||||
if (isset($data['openingBalance']) && !is_null($data['openingBalance']) && strlen($data['openingBalance']) > 0 &&
|
if (isset($data['openingBalance']) && !is_null($data['openingBalance']) && strlen($data['openingBalance']) > 0 &&
|
||||||
isset($data['openingBalanceDate'])) {
|
isset($data['openingBalanceDate'])) {
|
||||||
Log::debug('Array has valid opening balance data.');
|
Log::debug('Array has valid opening balance data.');
|
||||||
|
Reference in New Issue
Block a user