aboutsummaryrefslogtreecommitdiff
path: root/settings/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/index.php')
-rw-r--r--settings/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/index.php b/settings/index.php
index b5a966dbb..a786a4e51 100644
--- a/settings/index.php
+++ b/settings/index.php
@@ -12,12 +12,12 @@
require_once(dirname(dirname(__FILE__)) . "/engine/start.php");
if (!page_owner()) {
- set_page_owner($_SESSION['guid']);
+ set_page_owner(get_loggedin_userid());
}
// Make sure we don't open a security hole ...
if ((!page_owner_entity()) || (!page_owner_entity()->canEdit())) {
- set_page_owner($_SESSION['guid']);
+ set_page_owner(get_loggedin_userid());
}
// Forward to the user settings