From 2d2b9f4ef236512060eb96f58211c45077a89104 Mon Sep 17 00:00:00 2001 From: james Date: Thu, 3 Mar 2011 22:40:35 +0000 Subject: [PATCH] Update project page and status --- participant.inc.php | 6 ++++-- register_participants_project.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/participant.inc.php b/participant.inc.php index d57dc2ea..523afaec 100644 --- a/participant.inc.php +++ b/participant.inc.php @@ -137,6 +137,10 @@ function emergencycontactStatus($reg_id="") function projectStatus($reg_id="") { global $config, $conference; + + if($reg_id) $rid=$reg_id; + else $rid=$_SESSION['registration_id']; + $required_fields=array("title","projectcategories_id","projectdivisions_id","language","summarycountok"); if($config['participant_short_title_enable'] == 'yes') @@ -148,8 +152,6 @@ function projectStatus($reg_id="") if($config['participant_project_electricity'] == 'yes') $requiredFields[] = 'req_electricity'; - if($reg_id) $rid=$reg_id; - else $rid=$_SESSION['registration_id']; $q=mysql_query("SELECT * FROM projects WHERE registrations_id='$rid' AND conferences_id='".$conference['id']."'"); diff --git a/register_participants_project.php b/register_participants_project.php index d44c7603..da90ed53 100644 --- a/register_participants_project.php +++ b/register_participants_project.php @@ -87,7 +87,7 @@ //output the current status -$newstatus=projectStatus(); +$newstatus=projectStatus($u['registrations_id']); if($newstatus!="complete") { echo error(i18n("Project Information Incomplete"));