*** empty log message ***

svn path=/trunk/boinc/; revision=2043
This commit is contained in:
David Anderson 2003-08-08 22:17:36 +00:00
parent 4443e0e082
commit 0772d22a17
2 changed files with 10 additions and 5 deletions

View File

@ -40,7 +40,7 @@
page_head("Quit $team_name");
echo "<h2>Removed from team</h2>";
echo "You have been removed from <a href=team_display.php?teamid=$team->id>$team_name</a>";
if (!$new_nusers) {
if ($new_nusers <= 0) {
echo "<p>Since you were the last member of the team, it has been disbanded.";
}
} else {

View File

@ -1,4 +1,4 @@
<?php
<?php {
require_once("util.inc");
require_once("team.inc");
@ -41,10 +41,15 @@
}
}
}
$new_nusers = $$team->nusers - $nmembers;
$query = "update team set nusers = $new_nusers where id = $team->id";
$new_nusers = $team->nusers - $nmembers;
if ($new_nusers > 0) {
$query = "update team set nusers = $new_nusers where id = $team->id";
} else {
$query = "remove team where id=$team->id";
echo "<p><b>The team has been disbanded because there are no more members.</b>";
}
$result = mysql_query($query);
page_tail();
?>
} ?>