From 1e2608d5b5e3640ca23c22639673bbf81b421dba Mon Sep 17 00:00:00 2001 From: james Date: Thu, 8 Mar 2007 21:54:30 +0000 Subject: [PATCH] If there's no regfee, then dont show the status column on the confirmed participants page becuase status will only ever be 'Complete' --- confirmed_participants.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/confirmed_participants.php b/confirmed_participants.php index 854c26a..2ac98d4 100644 --- a/confirmed_participants.php +++ b/confirmed_participants.php @@ -99,11 +99,18 @@ $lastdiv=$r->division; } - $statusstar=""; - if($r->status=="paymentpending") - $statusstar="*"; - $status_text=i18n("Complete"); + //no need to output the status if we dont have a reg fee, becuase status is either 'complete' or 'payment pending' but if we dont have a regfee it can never be payment pending, so thus, it must be complete! + $statusstar=""; + if($config['regfee']>0) + { + if($r->status=="paymentpending") + $statusstar="*"; + + $status_text=i18n("Complete"); + } + else + $status_text=""; echo ""; echo "$status_text".$statusstar."";