X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdirfind.php;h=884eca9a663d5426b49bd962d672f486352ed652;hb=7034d6efbd988e7481ac6f5d6413a8925221ed6b;hp=c5844d13dfa742689c0e202a7a9cd92a9772fd68;hpb=632d77cfb1ffce8aaddc0134ee232df29f267162;p=friendica.git diff --git a/mod/dirfind.php b/mod/dirfind.php index c5844d13df..884eca9a66 100644 --- a/mod/dirfind.php +++ b/mod/dirfind.php @@ -1,9 +1,13 @@ page['aside'] .= follow_widget(); } - - function dirfind_content(App $a, $prefix = "") { $community = false; @@ -35,7 +37,7 @@ function dirfind_content(App $a, $prefix = "") { if (strpos($search,'@') === 0) { $search = substr($search,1); $header = sprintf( t('People Search - %s'), $search); - if ((valid_email($search) AND validate_email($search)) OR + if ((valid_email($search) && validate_email($search)) || (substr(normalise_link($search), 0, 7) == "http://")) { $user_data = probe_url($search); $discover_user = (in_array($user_data["network"], array(NETWORK_DFRN, NETWORK_OSTATUS, NETWORK_DIASPORA))); @@ -73,7 +75,7 @@ function dirfind_content(App $a, $prefix = "") { $j->results[] = $objresult; // Add the contact to the global contacts if it isn't already in our system - if (($contact["cid"] == 0) AND ($contact["zid"] == 0) AND ($contact["gid"] == 0)) { + if (($contact["cid"] == 0) && ($contact["zid"] == 0) && ($contact["gid"] == 0)) { update_gcontact($user_data); } } elseif ($local) {