mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix #1452
This commit is contained in:
parent
fc80f828be
commit
42072fdda4
@ -71,15 +71,15 @@ class CurrencyMapper
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
if (!isset($data['code']) || $data['code'] === null) {
|
||||
if (!isset($data['code']) || null === $data['code']) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// if still nothing, and fields not null, try to create it
|
||||
$creation = [
|
||||
'code' => $data['code'],
|
||||
'name' => $data['name'] ?? $code,
|
||||
'symbol' => $data['symbol'] ?? $code,
|
||||
'name' => $data['name'] ?? $data['code'],
|
||||
'symbol' => $data['symbol'] ?? $data['code'],
|
||||
'decimal_places' => 2,
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user