aboutsummaryrefslogtreecommitdiff
path: root/views/default/usersettings/plugins_opt/plugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/usersettings/plugins_opt/plugin.php')
-rw-r--r--views/default/usersettings/plugins_opt/plugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/default/usersettings/plugins_opt/plugin.php b/views/default/usersettings/plugins_opt/plugin.php
index d32e44283..79286ec90 100644
--- a/views/default/usersettings/plugins_opt/plugin.php
+++ b/views/default/usersettings/plugins_opt/plugin.php
@@ -20,7 +20,7 @@ $manifest = $details['manifest'];
$user_guid = $details['user_guid'];
if ($user_guid) {
- $user_guid = $_SESSION['user']->guid;
+ $user_guid = get_loggedin_userid();
}
if (elgg_view("usersettings/{$plugin}/edit")) {