diff --git a/register_participants.inc.php b/register_participants.inc.php index 317d6c1..7852884 100644 --- a/register_participants.inc.php +++ b/register_participants.inc.php @@ -50,7 +50,7 @@ function studentStatus($reg_id="") { global $config; if($config['participant_student_personal']=="yes") - $required_fields=array("firstname","lastname","address","city","postalcode","phone","email","grade","dateofbirth","schools_id"); + $required_fields=array("firstname","lastname","address","city","postalcode","phone","email","grade","dateofbirth","schools_id","sex"); else $required_fields=array("firstname","lastname","email","grade","schools_id"); @@ -70,9 +70,15 @@ function studentStatus($reg_id="") { foreach ($required_fields AS $req) { - if(!$r->$req) + if($req=="dateofbirth") { - return "incomplete"; + if($r->$req=="0000-00-00" || !$r->$req) + return "incomplete"; + } + else + { + if(!$r->$req) + return "incomplete"; } } } diff --git a/register_participants_students.php b/register_participants_students.php index 07dc36a..867c9c5 100644 --- a/register_participants_students.php +++ b/register_participants_students.php @@ -285,7 +285,7 @@ if($config['participant_student_personal']=="yes") echo "\n"; if($studentinfo->sex=="female") $sel="selected=\"selected\""; else $sel=""; echo "\n"; - echo "";//.REQUIREDFIELD; + echo "".REQUIREDFIELD; } echo "\n"; echo "