Simplify setting names and check

This commit is contained in:
DariusIII
2024-10-28 12:14:32 +01:00
parent 65ab33743b
commit f21e6e8845
40 changed files with 192 additions and 210 deletions
+1 -1
View File
@@ -555,7 +555,7 @@ class User extends Authenticatable
// Make sure this is the last check, as if a further validation check failed, the invite would still have been used up.
$invitedBy = 0;
if (! $forceInviteMode && (int) Settings::settingValue('..registerstatus') === Settings::REGISTER_STATUS_INVITE) {
if (! $forceInviteMode && (int) Settings::settingValue('registerstatus') === Settings::REGISTER_STATUS_INVITE) {
if ($inviteCode === '') {
return self::ERR_SIGNUP_BADINVITECODE;
}