aboutsummaryrefslogtreecommitdiff
path: root/actions/user/spotlight.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/user/spotlight.php')
-rw-r--r--actions/user/spotlight.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/actions/user/spotlight.php b/actions/user/spotlight.php
index ff111461e..d0ebb2226 100644
--- a/actions/user/spotlight.php
+++ b/actions/user/spotlight.php
@@ -17,5 +17,6 @@ if ($closed != 'true') {
$closed = true;
}
-$_SESSION['user']->spotlightclosed = $closed;
+get_loggedin_user()->spotlightclosed = $closed;
+// exit as this action is called through Ajax
exit; \ No newline at end of file