[sfiab-commits] [svn] commit: r1732 - /trunk/register_participants_emergencycontact.php
Brought to you by:
sfiab
From: <in...@sf...> - 2009-10-22 19:33:17
|
Author: james Date: Thu Oct 22 15:28:05 2009 New Revision: 1732 Log: Oops use the right phone fields Modified: trunk/register_participants_emergencycontact.php Modified: trunk/register_participants_emergencycontact.php ============================================================================== --- trunk/register_participants_emergencycontact.php (original) +++ trunk/register_participants_emergencycontact.php Thu Oct 22 15:28:05 2009 @@ -88,7 +88,8 @@ 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 @@ $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); } |