- web: fix team join bug

?? Why does omitting the "$" from a PHP variable
    cause PHP to emit a blank page?  How about an error memssage?

svn path=/trunk/boinc/; revision=16486
This commit is contained in:
David Anderson 2008-11-13 03:48:03 +00:00
parent dbb41700b6
commit ea4f9d7bd1
2 changed files with 10 additions and 2 deletions

View File

@ -9404,3 +9404,11 @@ Charlie 12 Nov 2008
clientgui/
AdvancedFrame.cpp
BOINCBaseView.cpp, .h
David 12 Nov 2008
- web: fix team join bug
?? Why does omitting the "$" from a PHP variable
cause PHP to emit a blank page? How about an error memssage?
html/user/
team_join_action.php

View File

@ -26,8 +26,8 @@ check_tokens($user->authenticator);
$teamid = post_int("teamid");
$team = BoincTeam::lookup_id($teamid);
require_team($team);
if (!team->joinable) {
error_page("The team is not joinabld.");
if (!$team->joinable) {
error_page("The team is not joinable.");
}
if ($user->teamid == $team->id) {
page_head("Unable to add $user->name");