diff options
Diffstat (limited to 'views/default/usersettings/statistics_opt')
-rw-r--r-- | views/default/usersettings/statistics_opt/numentities.php | 2 | ||||
-rw-r--r-- | views/default/usersettings/statistics_opt/online.php | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/views/default/usersettings/statistics_opt/numentities.php b/views/default/usersettings/statistics_opt/numentities.php index 1c4b127ec..ee38bdfee 100644 --- a/views/default/usersettings/statistics_opt/numentities.php +++ b/views/default/usersettings/statistics_opt/numentities.php @@ -9,7 +9,7 @@ */ // Get entity statistics -$entity_stats = get_entity_statistics($_SESSION['user']->guid); +$entity_stats = get_entity_statistics(get_loggedin_userid()); if ($entity_stats) { ?> 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; } ?> |