diff options
author | Krzysztof Różalski <cristo.rabani@gmail.com> | 2012-12-04 21:42:51 +0100 |
---|---|---|
committer | Krzysztof Różalski <cristo.rabani@gmail.com> | 2012-12-04 21:51:02 +0100 |
commit | b4811b199cb4d3a2770b9c1f75870a66b49548bd (patch) | |
tree | 5c199c3430e3b0b84da4df93ff6e11f7452fca6d | |
parent | 04e73aa6428eb792bedbbd616891de52eed3dcbf (diff) | |
download | elgg-b4811b199cb4d3a2770b9c1f75870a66b49548bd.tar.gz elgg-b4811b199cb4d3a2770b9c1f75870a66b49548bd.tar.bz2 |
Fixes #4946 - In views/default/core/settings/statistics/online.php there's get_system_log call but system_log call can be supressed by unregistering default handler. Better to use last_login attribute.
-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'); |