From dad6a61be4b7d23bcf5c19dd782e80aa4886b3a3 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 23 Mar 2017 22:19:10 +0100 Subject: [PATCH] it is space-season ... ;-) #3254 Signed-off-by: Roland Haeder --- include/dfrn.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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(); -- 2.39.5