aboutsummaryrefslogtreecommitdiff
path: root/views/default/usersettings/statistics_opt/online.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/usersettings/statistics_opt/online.php')
-rw-r--r--views/default/usersettings/statistics_opt/online.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/views/default/usersettings/statistics_opt/online.php b/views/default/usersettings/statistics_opt/online.php
index 817b18cde..e176aaf9f 100644
--- a/views/default/usersettings/statistics_opt/online.php
+++ b/views/default/usersettings/statistics_opt/online.php
@@ -8,13 +8,13 @@
* @link http://elgg.org/
*/
-$user = $_SESSION['user'];
+$user = get_loggedin_user();
$logged_in = 0;
-$log = get_system_log($_SESSION['user']->guid, "login", "", 'user', '', 1);
+$log = get_system_log($user->guid, "login", "", 'user', '', 1);
if ($log) {
- $logged_in=$log[0]->time_created;
+ $logged_in = $log[0]->time_created;
}
?>