From f1dadb443443a02049aac21a83a8b11a102921b4 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 7 Dec 2004 16:33:14 +0000 Subject: [PATCH] Only display the named greeting if we have their name --- register_participants_main.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/register_participants_main.php b/register_participants_main.php index c59c1601..c4a2f69c 100644 --- a/register_participants_main.php +++ b/register_participants_main.php @@ -32,8 +32,12 @@ echo mysql_error(); $r=mysql_fetch_object($q); send_header("Participant Registration - Summary"); - echo i18n("Hello %1",array($r->firstname)); - echo "
"; + //only display the named greeting if we have their name + if($r->firstname) + { + echo i18n("Hello %1",array($r->firstname)); + echo "
"; + } echo "
"; echo i18n("Please use the checklist below to complete your registration. Click on an item in the table to edit that information. When you have entered all information, the Status field will change to Complete"); echo "
";