Add intval just in case.

This commit is contained in:
James Cole 2018-01-12 21:31:39 +01:00
parent 6fe5ce0485
commit 6799268ec4
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -568,7 +568,7 @@ class ExpenseController extends Controller
];
// loop to support multi currency
foreach ($set as $transaction) {
$currencyId = $transaction->transaction_currency_id;
$currencyId = intval($transaction->transaction_currency_id);
// if not set, set to zero:
if (!isset($sum['per_currency'][$currencyId])) {