Fix decrypt exception.

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

View File

@ -148,8 +148,6 @@ class MonthReportGenerator extends Support implements ReportGeneratorInterface
// is not set? // is not set?
if (!isset($result[$opposingId])) { if (!isset($result[$opposingId])) {
$name = $transaction->opposing_account_name; $name = $transaction->opposing_account_name;
$encrypted = intval($transaction->opposing_account_encrypted);
$name = $encrypted === 1 ? Crypt::decrypt($name) : $name;
$result[$opposingId] = [ $result[$opposingId] = [
'name' => $name, 'name' => $name,
'count' => 1, 'count' => 1,