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

This commit is contained in:
James Cole 2014-11-25 20:22:32 +01:00
parent e9b7e82aea
commit 1383cbd4d5

View File

@ -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;
}
);