Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fix #2370
  • Loading branch information
JC5 committed Aug 3, 2019
1 parent ece0c99 commit 8717f46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Support/Http/Controllers/UserNavigation.php
Expand Up @@ -124,7 +124,7 @@ protected function redirectToOriginalAccount(Account $account)
/** @var Transaction $transaction */
$transaction = $account->transactions()->first();
if (null === $transaction) {
app('session')->flash('error', trans('firefly.account_missing_transaction', ['name' => $account->name, 'id' => $account->id]));
app('session')->flash('error', trans('firefly.account_missing_transaction', ['name' => e($account->name), 'id' => $account->id]));
Log::error(sprintf('Expected a transaction. Account #%d has none. BEEP, error.', $account->id));

return redirect(route('index'));
Expand All @@ -135,7 +135,7 @@ protected function redirectToOriginalAccount(Account $account)
$opposingTransaction = $journal->transactions()->where('transactions.id', '!=', $transaction->id)->first();

if (null === $opposingTransaction) {
app('session')->flash('error', trans('firefly.account_missing_transaction', ['name' => $account->name, 'id' => $account->id]));
app('session')->flash('error', trans('firefly.account_missing_transaction', ['name' => e($account->name), 'id' => $account->id]));
Log::error(sprintf('Expected an opposing transaction. Account #%d has none. BEEP, error.', $account->id));
}

Expand Down

0 comments on commit 8717f46

Please sign in to comment.