forked from science-ation/science-ation
Oops use the right phone fields
This commit is contained in:
parent
10fa7919c4
commit
fa2a70b470
@ -88,7 +88,8 @@ echo mysql_error();
|
||||
if($u=user_load_by_username($e)) {
|
||||
$u['firstname']=stripslashes($_POST['firstname'][$id]);
|
||||
$u['lastname']=stripslashes($_POST['lastname'][$id]);
|
||||
$u['phone']=stripslashes($_POST['phone1'][$id]);
|
||||
$u['phonehome']=stripslashes($_POST['phone1'][$id]);
|
||||
$u['phonework']=stripslashes($_POST['phone2'][$id]);
|
||||
$u['email']=$e;
|
||||
$u['types'][]="parent";
|
||||
user_save($u);
|
||||
@ -97,7 +98,8 @@ echo mysql_error();
|
||||
$u=user_create("parent",$e);
|
||||
$u['firstname']=stripslashes($_POST['firstname'][$id]);
|
||||
$u['lastname']=stripslashes($_POST['lastname'][$id]);
|
||||
$u['phone']=stripslashes($_POST['phone1'][$id]);
|
||||
$u['phonehome']=stripslashes($_POST['phone1'][$id]);
|
||||
$u['phonework']=stripslashes($_POST['phone2'][$id]);
|
||||
$u['email']=$e;
|
||||
user_save($u);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user