From: Roland Haeder Date: Thu, 23 Mar 2017 21:19:10 +0000 (+0100) Subject: it is space-season ... ;-) #3254 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dad6a61be4b7d23bcf5c19dd782e80aa4886b3a3;p=friendica.git it is space-season ... ;-) #3254 Signed-off-by: Roland Haeder --- diff --git a/include/dfrn.php b/include/dfrn.php index 8b230f03d9..f0b702edd4 100644 --- a/include/dfrn.php +++ b/include/dfrn.php @@ -689,15 +689,15 @@ class dfrn { } if ($r->link) { - if (substr($r->link,0,1) == '<') { - if (strstr($r->link,'&') && (! strstr($r->link,'&'))) { - $r->link = str_replace('&','&', $r->link); + if (substr($r->link, 0, 1) == '<') { + if (strstr($r->link, '&') && (! strstr($r->link, '&'))) { + $r->link = str_replace('&', '&', $r->link); } - $r->link = preg_replace('/\/','',$r->link); + $r->link = preg_replace('/\/', '', $r->link); // XML does need a single element as root element so we add a dummy element here - $data = parse_xml_string("".$r->link."", false); + $data = parse_xml_string("" . $r->link . "", false); if (is_object($data)) { foreach ($data->link AS $link) { $attributes = array();