Fix decrypt exception.

This commit is contained in:
James Cole 2016-12-06 10:13:48 +01:00
parent cdd50dfdd2
commit 8a0ac81fd0
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -265,14 +265,6 @@ class MonthReportGenerator extends Support implements ReportGeneratorInterface
{
$transactions = $this->getExpenses()->sortBy('transaction_amount');
$transactions = $transactions->each(
function (Transaction $transaction) {
if (intval($transaction->opposing_account_encrypted) === 1) {
$transaction->opposing_account_name = Crypt::decrypt($transaction->opposing_account_name);
}
}
);
return $transactions;
}
@ -283,14 +275,6 @@ class MonthReportGenerator extends Support implements ReportGeneratorInterface
{
$transactions = $this->getIncome()->sortByDesc('transaction_amount');
$transactions = $transactions->each(
function (Transaction $transaction) {
if (intval($transaction->opposing_account_encrypted) === 1) {
$transaction->opposing_account_name = Crypt::decrypt($transaction->opposing_account_name);
}
}
);
return $transactions;
}