diff options
Diffstat (limited to 'actions/email/save.php')
-rw-r--r-- | actions/email/save.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/email/save.php b/actions/email/save.php index 6c166242b..2d226552a 100644 --- a/actions/email/save.php +++ b/actions/email/save.php @@ -29,7 +29,7 @@ if (!get_user_by_email($email)) { -
+ if ($user->email != $email) { $user->email = $email; if ($user->save()) @@ -38,7 +38,7 @@ system_message(elgg_echo('email:save:success')); } else - register_error(elgg_echo('email:save:fail'));
+ register_error(elgg_echo('email:save:fail')); } } else |