Insert a mentor if we have at least the mentor's last name, instead of requiring both firstname and lastname

This commit is contained in:
james 2006-02-01 21:08:59 +00:00
parent d56f62f95e
commit 2169e3829f

View File

@ -79,7 +79,7 @@ if($_POST['action']=="save")
if($_POST['id'][$x]==0)
{
//only insert if we have a name
if($_POST['firstname'][$x] && $_POST['lastname'][$x])
if($_POST['lastname'][$x])
{
//INSERT new record
mysql_query("INSERT INTO mentors (registrations_id,firstname,lastname,email,phone,organization,position,description,year) VALUES (".