diff --git a/include/dfrn.php b/include/dfrn.php
index 8b230f03d..f0b702edd 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();