diff --git a/html/user/create_team.php b/html/user/create_team.php index d7be56c5e9..ca31dea09b 100644 --- a/html/user/create_team.php +++ b/html/user/create_team.php @@ -42,6 +42,12 @@ if (!$user) { xml_error(ERR_DB_NOT_FOUND); } +if (@constant('TEAM_CREATE_NEED_CREDIT')) { + if ($user->total_credit == 0) { + xml_error(-1, "no credit"); + } +} + $name = $_GET["name"]; if (strlen($name) == 0) { xml_error(-1, "must set team name");