Fix decrypt exception.

This commit is contained in:
James Cole
2016-12-06 10:12:08 +01:00
parent a05c8ca351
commit cdd50dfdd2

View File

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