X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ffollow.php;h=30451910772295fb824e8ac66b127b51100182e5;hb=47fd9226c3f0b90f460fe2031fa46cbb49a87100;hp=8d80538e0c924856c51c0547511d4e4769f750aa;hpb=d2280d4120ca09ff5f3013e961a1f43bb5244cc6;p=friendica.git diff --git a/include/follow.php b/include/follow.php index 8d80538e0c..3045191077 100644 --- a/include/follow.php +++ b/include/follow.php @@ -110,12 +110,10 @@ function new_contact($uid,$url,$interactive = false) { // NOTREACHED } - } else { - if (get_config('system','dfrn_only')) { - $result['message'] = t('This site is not configured to allow communications with other networks.') . EOL; - $result['message'] != t('No compatible communication protocols or feeds were discovered.') . EOL; - return $result; - } + } elseif (get_config('system','dfrn_only')) { + $result['message'] = t('This site is not configured to allow communications with other networks.') . EOL; + $result['message'] != t('No compatible communication protocols or feeds were discovered.') . EOL; + return $result; } // This extra param just confuses things, remove it