diff --git a/mod/friendica.php b/mod/friendica.php index 2b51ac8580..d10deb2e88 100644 --- a/mod/friendica.php +++ b/mod/friendica.php @@ -22,7 +22,7 @@ function friendica_init(App $a) ]; $register_policy_int = intval(Config::get('config', 'register_policy')); - if ($register_policy_int === Register::OPEN && Config::get('config', 'invitation_only')) { + if ($register_policy_int !== Register::CLOSED && Config::get('config', 'invitation_only')) { $register_policy = 'REGISTER_INVITATION'; } else { $register_policy = $register_policies[$register_policy_int];