]> git.mxchange.org Git - friendica.git/blobdiff - mod/openid.php
Uncommon logger levels in Friendica (#5453)
[friendica.git] / mod / openid.php
index 7be8544cd974f7c6cf3c39d0985180e79a8e3ed1..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 (Config::get('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());
                        }