diff --git a/admin/account_list.php b/admin/account_list.php
index 89b7281..7941031 100644
--- a/admin/account_list.php
+++ b/admin/account_list.php
@@ -96,7 +96,12 @@ if($_POST['show_types'])
if(count($u['roles'])) {
echo "";
echo "";
- echo $u['firstname']." ".$u['lastname'];
+ if($u['firstname'] || $u['lastname']) {
+ echo $u['firstname']." ".$u['lastname'];
+ }
+ else {
+ echo i18n("No name specified");
+ }
echo "";
echo "";
echo "
";
diff --git a/participant_invite.php b/participant_invite.php
index 60b6296..bda506e 100644
--- a/participant_invite.php
+++ b/participant_invite.php
@@ -167,19 +167,7 @@
echo "
";
-/*
-//FIXME: commente dby james 2010-12-21 - we need ta better way to know which types we can invite
- $allowed_types = array('judge', 'volunteer');
- if($type == '') $type = $_GET['type'];
- if($type != '') {
- if(!in_array($type, $allowed_types)) {
- echo "Type $type not allowed for invite
";
- exit;
- }
- }
- */
-
-if($_POST['action']=="invitenew" && $_POST['email'] && $type != '') {
+if( ($_POST['action']=="invitenew" || $_POST['action']=="inviteexisting") && $_POST['email'] && $type != '') {
$newUser=user_invite($_POST['email'], null, $_POST['email'], $type);
if(is_array($newUser)) {
echo happy(i18n("%1 successfully invited to be a %2",array($_POST['email'],$type)));
@@ -188,16 +176,7 @@ if($_POST['action']=="invitenew" && $_POST['email'] && $type != '') {
echo error($newUser);
}
}
- else if($_POST['action']=="inviteexisting" && $_POST['email'] && $type != '') {
- $newUser=user_invite($_POST['email'], null, $_POST['email'], $type);
- if(is_array($newUser)) {
- echo happy(i18n("%1 successfully invited to be a %2",array($_POST['email'],$type)));
- }
- else {
- echo error($newUser);
- }
- }
echo "