]> git.mxchange.org Git - friendica.git/blobdiff - mod/openid.php
Uncommon logger levels in Friendica (#5453)
[friendica.git] / mod / openid.php
index 2c284f76d88757848459a339cfbe98bdafcfdcb9..3baeec28d04feab6ed8d06ff1439b7e38131121b 100644 (file)
@@ -62,7 +62,7 @@ function openid_content(App $a) {
                        // Successful OpenID login - but we can't match it to an existing account.
                        // New registration?
 
-                       if ($a->config['register_policy'] == REGISTER_CLOSED) {
+                       if (intval(Config::get('config', 'register_policy')) === REGISTER_CLOSED) {
                                notice(L10n::t('Account not found and OpenID registration is not permitted on this site.') . EOL);
                                goaway(System::baseUrl());
                        }