From 4443e0e082cea7e0246ef55a4f7e24291ba84a67 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 8 Aug 2003 22:06:52 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=2042 --- html/user/team.inc | 2 +- html/user/team_quit_action.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/html/user/team.inc b/html/user/team.inc index 4b03d7f8c1..be1ab68e0b 100644 --- a/html/user/team.inc +++ b/html/user/team.inc @@ -144,7 +144,7 @@ function user_join_team($team, $user) { $first_team = mysql_fetch_object($result_team_other); $first_nusers = $first_team->nusers; $first_new_nusers = $first_nusers - 1; - if ($first_new_nusers) { + if ($first_new_nusers > 0) { $query_team_table_other = sprintf( "update team set nusers = %d where id = %d", $first_new_nusers, diff --git a/html/user/team_quit_action.php b/html/user/team_quit_action.php index 2a3b0adbc4..4c746440b7 100644 --- a/html/user/team_quit_action.php +++ b/html/user/team_quit_action.php @@ -22,7 +22,7 @@ $result_user_table = mysql_query($query_user_table); $nusers = $team->nusers; $new_nusers = $nusers - 1; - if ($new_nusers) { + if ($new_nusers > 0) { $query_team_table = sprintf( "update team set nusers = %d where id = %d", $new_nusers,