This commit is contained in:
Tokumeikoi 2020-03-13 14:33:48 +08:00
parent 13dbb143f8
commit 6e7da97fcd

View File

@ -64,7 +64,7 @@ class AuthController extends Controller
}
} else {
$user->invite_user_id = $inviteCode->user_id ? $inviteCode->user_id : null;
if (!(int)config('v2board.invite_never_expire', env('V2BOARD_INVITE_NEVER_EXPIRE'))) {
if (!(int)config('v2board.invite_never_expire', 0)) {
$inviteCode->status = 1;
$inviteCode->save();
}