aboutsummaryrefslogtreecommitdiff
path: root/views/default/user/settings/email.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/user/settings/email.php')
-rw-r--r--views/default/user/settings/email.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/default/user/settings/email.php b/views/default/user/settings/email.php
index 6b14504c7..f8dfaecaa 100644
--- a/views/default/user/settings/email.php
+++ b/views/default/user/settings/email.php
@@ -10,7 +10,7 @@
* @link http://elgg.org/
*/
- $user = $_SESSION['user'];
+ $user = page_owner_entity();
if ($user) {
?>