fix signup 500 when close register

This commit is contained in:
xiaomlove
2023-05-13 01:59:51 +08:00
parent 88bc88dc5a
commit 314d1ca923
3 changed files with 11 additions and 8 deletions
+4 -1
View File
@@ -23,7 +23,10 @@ if ($type == 'invite')
{
registration_check();
failedloginscheck ("Invite signup");
$code = $_GET["invitenumber"];
$code = $_GET["invitenumber"] ?? '';
if (empty($code)) {
stderr($lang_signup['std_error'], "Require invitenumber");
}
$nuIP = getip();
$dom = @gethostbyaddr($nuIP);