X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ffollow.php;h=711579ff5a013c0fb543db99bdc9d3b0a4603d0e;hb=99f0c01cddeb14bf4c7e3e42134c3c77903cf1ca;hp=161e669e949bb26480e07521528aa02b9820125d;hpb=20043914e6111ba53df85e1efd3389c99d37302f;p=friendica.git diff --git a/include/follow.php b/include/follow.php index 161e669e94..711579ff5a 100644 --- a/include/follow.php +++ b/include/follow.php @@ -2,13 +2,13 @@ use Friendica\App; -require_once("include/Scrape.php"); -require_once("include/socgraph.php"); -require_once('include/group.php'); -require_once('include/salmon.php'); -require_once('include/ostatus.php'); -require_once("include/Photo.php"); -require_once('include/diaspora.php'); +require_once 'include/probe.php'; +require_once 'include/socgraph.php'; +require_once 'include/group.php'; +require_once 'include/salmon.php'; +require_once 'include/ostatus.php'; +require_once 'include/Photo.php'; +require_once 'include/diaspora.php'; function update_contact($id) { /* @@ -30,10 +30,10 @@ function update_contact($id) { // make sure to not overwrite existing values with blank entries foreach ($ret AS $key => $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; }