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