mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-07 06:31:22 +00:00
Add message.
This commit is contained in:
@@ -333,6 +333,10 @@ class Amount
|
|||||||
|
|
||||||
public function getTransactionCurrencyById(int $currencyId): TransactionCurrency
|
public function getTransactionCurrencyById(int $currencyId): TransactionCurrency
|
||||||
{
|
{
|
||||||
|
if(0 === $currencyId) {
|
||||||
|
Log::debug('Could never find a currency with ID zero. Throw error.');
|
||||||
|
throw new FireflyException('Could never find a currency with ID zero. Throw error.');
|
||||||
|
}
|
||||||
$instance = PreferencesSingleton::getInstance();
|
$instance = PreferencesSingleton::getInstance();
|
||||||
$key = sprintf('transaction_currency_%d', $currencyId);
|
$key = sprintf('transaction_currency_%d', $currencyId);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user