X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ffollow.php;h=711579ff5a013c0fb543db99bdc9d3b0a4603d0e;hb=99f0c01cddeb14bf4c7e3e42134c3c77903cf1ca;hp=11138afac8c54609989e51317f6ad0e151db339d;hpb=c7e1a8e871363d4e60178e30e819c3169ed406c5;p=friendica.git diff --git a/include/follow.php b/include/follow.php index 11138afac8..711579ff5a 100644 --- a/include/follow.php +++ b/include/follow.php @@ -1,11 +1,14 @@ $val) { - if (isset($r[0][$key]) AND ($r[0][$key] != "") AND ($val == "")) + if (isset($r[0][$key]) && ($r[0][$key] != "") && ($val == "")) $ret[$key] = $r[0][$key]; - if (isset($r[0][$key]) AND ($ret[$key] != $r[0][$key])) + if (isset($r[0][$key]) && ($ret[$key] != $r[0][$key])) $update = true; } @@ -82,7 +85,7 @@ function new_contact($uid,$url,$interactive = false) { return $result; } - if (! check_domain_blocklist($url)) { + if (blocked_url($url)) { $result['message'] = t('Blocked domain'); return $result; }