Changeset 2124 for trunk/profile.php


Ignore:
Timestamp:
Oct 6, 2007, 8:41:18 AM (17 years ago)
Author:
rub
Message:

Resolved 0000759: email unique for each user

Fix bug of last commit 2115

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/profile.php

    r2048 r2124  
    116116  if (isset($_POST['mail_address']))
    117117  {
    118     $mail_error = validate_mail_address($_POST['mail_address']);
     118    // if $_POST and $userdata have are same email
     119    // validate_mail_address allows, however, to check email
     120    $mail_error = validate_mail_address($userdata['id'], $_POST['mail_address']);
    119121    if (!empty($mail_error))
    120122    {
Note: See TracChangeset for help on using the changeset viewer.