From 1383cbd4d555d69771d6d07b648c50e9e36f3ded Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 25 Nov 2014 20:22:32 +0100 Subject: [PATCH] Fixed a bug where a null transaction would be used anyway. --- app/controllers/AccountController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } );