]> git.mxchange.org Git - friendica.git/commitdiff
it is space-season ... ;-) #3254
authorRoland Haeder <roland@mxchange.org>
Thu, 23 Mar 2017 21:19:10 +0000 (22:19 +0100)
committerRoland Haeder <roland@mxchange.org>
Thu, 23 Mar 2017 21:19:25 +0000 (22:19 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
include/dfrn.php

index 8b230f03d9d085b852ac73898f9d4ea911957628..f0b702edd4fc245a70725a0bb9c0da7af1a7e997 100644 (file)
@@ -689,15 +689,15 @@ class dfrn {
                        }
 
                        if ($r->link) {
-                               if (substr($r->link,0,1) == '<') {
-                                       if (strstr($r->link,'&') && (! strstr($r->link,'&amp;'))) {
-                                               $r->link = str_replace('&','&amp;', $r->link);
+                               if (substr($r->link, 0, 1) == '<') {
+                                       if (strstr($r->link, '&') && (! strstr($r->link, '&amp;'))) {
+                                               $r->link = str_replace('&', '&amp;', $r->link);
                                        }
 
-                                       $r->link = preg_replace('/\<link(.*?)\"\>/','<link$1"/>',$r->link);
+                                       $r->link = preg_replace('/\<link(.*?)\"\>/', '<link$1"/>', $r->link);
 
                                        // XML does need a single element as root element so we add a dummy element here
-                                       $data = parse_xml_string("<dummy>".$r->link."</dummy>", false);
+                                       $data = parse_xml_string("<dummy>" . $r->link . "</dummy>", false);
                                        if (is_object($data)) {
                                                foreach ($data->link AS $link) {
                                                        $attributes = array();