mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-11-04 05:15:39 +00:00 
			
		
		
		
	Fix decrypt exception.
This commit is contained in:
		@@ -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;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user