X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fopenid.php;h=3baeec28d04feab6ed8d06ff1439b7e38131121b;hb=c17adaf3333b356d0c7b19226b29cd733a43017b;hp=2c284f76d88757848459a339cfbe98bdafcfdcb9;hpb=93daf7883e98d797759fb81dbf12e9e368debf61;p=friendica.git diff --git a/mod/openid.php b/mod/openid.php index 2c284f76d8..3baeec28d0 100644 --- a/mod/openid.php +++ b/mod/openid.php @@ -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()); }