diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-26 15:48:28 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-26 15:48:28 +0000 |
commit | 31c5b57b92b2b2442527cc601eab113e047b0e93 (patch) | |
tree | 7cae2e88ab91dde44dce8fbdaded4e1e977b0cf8 /actions/email | |
parent | 6bb9e16e357eb718e954255b59681d519cda57ae (diff) | |
download | elgg-31c5b57b92b2b2442527cc601eab113e047b0e93.tar.gz elgg-31c5b57b92b2b2442527cc601eab113e047b0e93.tar.bz2 |
Unified user settings form
git-svn-id: https://code.elgg.org/elgg/trunk@1149 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/email')
-rw-r--r-- | actions/email/save.php | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/actions/email/save.php b/actions/email/save.php index 08fcc7647..79cc40c6d 100644 --- a/actions/email/save.php +++ b/actions/email/save.php @@ -25,19 +25,21 @@ $user = get_entity($user_id); if ($user) - { - $user->email = $email; - if ($user->save()) - { - request_email_validation($user->getGUID()); - system_message(elgg_echo('email:save:success')); + {
+ if ($user->email != $email) { + $user->email = $email; + if ($user->save()) + { + request_email_validation($user->getGUID()); + system_message(elgg_echo('email:save:success')); + } + else + system_message(elgg_echo('email:save:fail'));
} - else - system_message(elgg_echo('email:save:fail')); } else system_message(elgg_echo('email:save:fail')); - forward($_SERVER['HTTP_REFERER']); - exit; + //forward($_SERVER['HTTP_REFERER']); + //exit; ?>
\ No newline at end of file |