]> git.mxchange.org Git - friendica.git/blobdiff - include/follow.php
Revert unneeded changes in third-party libraries
[friendica.git] / include / follow.php
index 8d80538e0c924856c51c0547511d4e4769f750aa..30451910772295fb824e8ac66b127b51100182e5 100644 (file)
@@ -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