diff --git a/user_personal.php b/user_personal.php index 132fe46..9bef905 100644 --- a/user_personal.php +++ b/user_personal.php @@ -91,7 +91,7 @@ /* Check for an email collision */ $em = mysql_escape_string(stripslashes($_POST['email'])); - $q=mysql_query("SELECT id FROM users WHERE email='$em'"); + $q=mysql_query("SELECT id FROM users WHERE email='$em' AND id!='{$u['id']}'"); if(mysql_num_rows($q) > 0) { $notice = 'email_exists'; } else {