aboutsummaryrefslogtreecommitdiff
path: root/mod/bookmarks/bookmarklet.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/bookmarks/bookmarklet.php')
-rw-r--r--mod/bookmarks/bookmarklet.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/bookmarks/bookmarklet.php b/mod/bookmarks/bookmarklet.php
index e71797026..e1ff3c6df 100644
--- a/mod/bookmarks/bookmarklet.php
+++ b/mod/bookmarks/bookmarklet.php
@@ -13,8 +13,8 @@ gatekeeper();
// Get the current page's owner
$page_owner = page_owner_entity();
-if ($page_owner === false || is_null($page_owner) && ($_SESSION['user'])) {
- $page_owner = $_SESSION['user'];
+if ($page_owner === false || is_null($page_owner) && (get_loggedin_user())) {
+ $page_owner = get_loggedin_user();
set_page_owner($page_owner->getGUID());
}