aboutsummaryrefslogtreecommitdiffstats
path: root/profile.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2007-10-06 06:41:18 +0000
committerrub <rub@piwigo.org>2007-10-06 06:41:18 +0000
commit5132cc1f87025bd17d6bd90e5ac8ad73288bf482 (patch)
tree9c871884505b17b689546d00ae7bfb34df4de0b9 /profile.php
parent924733b9f0678a8071abda29af74b88d27f06000 (diff)
Resolved 0000759: email unique for each user
Fix bug of last commit 2115 git-svn-id: http://piwigo.org/svn/trunk@2124 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'profile.php')
-rw-r--r--profile.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/profile.php b/profile.php
index 5b244edf2..ff19bb3a0 100644
--- a/profile.php
+++ b/profile.php
@@ -115,7 +115,9 @@ function save_profile_from_post(&$userdata, &$errors)
if (isset($_POST['mail_address']))
{
- $mail_error = validate_mail_address($_POST['mail_address']);
+ // if $_POST and $userdata have are same email
+ // validate_mail_address allows, however, to check email
+ $mail_error = validate_mail_address($userdata['id'], $_POST['mail_address']);
if (!empty($mail_error))
{
$errors[] = $mail_error;