mirror of https://github.com/BOINC/boinc.git
- 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:
parent
dbb41700b6
commit
ea4f9d7bd1
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue