diff --git a/user_personal.php b/user_personal.php index 32fc39b..b37dc09 100644 --- a/user_personal.php +++ b/user_personal.php @@ -153,7 +153,7 @@ /* Check for an email collision */ $em = mysql_escape_string(stripslashes($_POST['email'])); - $q=mysql_query("SELECT id FROM users WHERE email='$em' AND id!='{$u['id']}'"); + $q=mysql_query("SELECT id FROM users WHERE email='$em' AND uid!='{$u['uid']}' AND deleted='no'"); if(mysql_num_rows($q) > 0) { message_push(error(i18n("That email address is in use by another user"))); $save = false; @@ -161,10 +161,6 @@ if($save == true) { user_save($u); - if($_SESSION['last_page'] == 'committee_management') { - header("location: {$config['SFIABDIRECTORY']}/admin/committees.php"); - exit; - } message_push(notice(i18n("%1 %2 successfully updated",array($_POST['firstname'],$_POST['lastname'])))); }