From 3f791bf1a7dcdb3a327deea83586657d83258285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rytis=20Slatkevi=C4=8Dius?= Date: Wed, 20 Dec 2006 18:49:54 +0000 Subject: [PATCH] Notify user if there is nobody to transfer to svn path=/trunk/boinc/; revision=11711 --- html/user/team_change_founder_form.php | 29 +++++++++++++++++--------- 1 file changed, 19 insertions(+), 10 deletions(-) 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(); ?>