mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=2043
This commit is contained in:
parent
4443e0e082
commit
0772d22a17
|
@ -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 {
|
||||
|
|
|
@ -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();
|
||||
|
||||
?>
|
||||
} ?>
|
||||
|
|
Loading…
Reference in New Issue