aboutsummaryrefslogtreecommitdiff
path: root/actions/email/save.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/email/save.php')
-rw-r--r--actions/email/save.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/email/save.php b/actions/email/save.php
index 13bc14d65..d0ce4571b 100644
--- a/actions/email/save.php
+++ b/actions/email/save.php
@@ -10,7 +10,7 @@ $email = get_input('email');
$user_id = get_input('guid');
if (!$user_id) {
- $user = get_loggedin_user();
+ $user = elgg_get_logged_in_user_entity();
} else {
$user = get_entity($user_id);
}