diff options
author | Steve Clay <steve@mrclay.org> | 2013-01-12 07:18:25 -0800 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2013-01-12 07:18:25 -0800 |
commit | 6a4efa828362f14fff4e12f4b8eafc56a19221d5 (patch) | |
tree | 2fd53882e63dbd361414d92fd6c87c0739c8eab6 /views/default/core | |
parent | 9e39faf46be715df29138742d1da12b49c31c9d5 (diff) | |
parent | b4811b199cb4d3a2770b9c1f75870a66b49548bd (diff) | |
download | elgg-6a4efa828362f14fff4e12f4b8eafc56a19221d5.tar.gz elgg-6a4efa828362f14fff4e12f4b8eafc56a19221d5.tar.bz2 |
Merge pull request #456 from cristo-rabani/ticket_4946
Fixes #4946 - More reliable last login time in user account statistics
Diffstat (limited to 'views/default/core')
-rw-r--r-- | views/default/core/settings/statistics/online.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/views/default/core/settings/statistics/online.php b/views/default/core/settings/statistics/online.php index f50ad9acc..1385ff60f 100644 --- a/views/default/core/settings/statistics/online.php +++ b/views/default/core/settings/statistics/online.php @@ -8,20 +8,13 @@ $user = elgg_get_page_owner_entity(); -$logged_in = 0; -$log = get_system_log($user->guid, "login", "", 'user', '', 1); - -if ($log) { - $logged_in = $log[0]->time_created; -} - $label_name = elgg_echo('usersettings:statistics:label:name'); $label_email = elgg_echo('usersettings:statistics:label:email'); $label_member_since = elgg_echo('usersettings:statistics:label:membersince'); $label_last_login = elgg_echo('usersettings:statistics:label:lastlogin'); $time_created = date("r", $user->time_created); -$last_login = date("r", $logged_in); +$last_login = date("r", $user->last_login); $title = elgg_echo('usersettings:statistics:yourdetails'); |