diff --git a/html/user/team_change_founder_form.php b/html/user/team_change_founder_form.php index 4268a4ae71..d436f8449e 100644 --- a/html/user/team_change_founder_form.php +++ b/html/user/team_change_founder_form.php @@ -50,21 +50,30 @@ while ($user = mysql_fetch_object($result)) { if($user->id!=$team->userid) { //don't show current founder $user_total_credit = format_credit($user->total_credit); $user_expavg_credit = format_credit($user->expavg_credit); - echo " + echo ' - id> - $user->name - $user_total_credit - $user_expavg_credit - "; + + '.$user->name.' + '.$user_total_credit.' + '.$user_expavg_credit.' + + '; $navailable_users++; } } -echo ""; -mysql_free_result($result); -end_table(); -echo ""; +if ($navailable_users > 0) { + echo ""; + end_table(); + echo ""; +} else { + echo ' + There are no users to transfer team to. + + '; + end_table(); +} echo ""; +mysql_free_result($result); page_tail(); ?>