Skip to content

Firefly III: a personal finances manager

Fixed a bug where a null transaction would be used anyway.

James Cole1383cbd4d555
diff --git a/app/controllers/AccountController.php b/app/controllers/AccountController.php
index ed6eb51257..d7ecedcde8 100644
--- a/app/controllers/AccountController.php
+++ b/app/controllers/AccountController.php
@@ -202,9 +202,10 @@ class AccountController extends BaseController
if (is_null($transaction)) {
$account->lastActionDate = null;
+ } else {
+ $account->lastActionDate = $transaction->updated_at;
}
- $account->lastActionDate = $transaction->updated_at;
}
);