]> git.mxchange.org Git - friendica.git/commitdiff
Small formatting issue
authorMichael <heluecht@pirati.ca>
Sun, 27 Aug 2017 07:02:44 +0000 (07:02 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 27 Aug 2017 07:02:44 +0000 (07:02 +0000)
include/feed.php

index 91bbb286edf4fa54e79b919027a0818095374433..74cff767333803626b3bf58234e865fded4193db 100644 (file)
@@ -346,11 +346,9 @@ function feed_import($xml,$importer,&$contact, &$hub, $simulate = false) {
                        }
                        $item["body"] = html2bbcode($body);
 
-                       if ($item["body"] == "") {
-                               if ($item["title"] != '') {
-                                       $item["body"] = $item["title"];
-                                       $item["title"] = '';
-                               }
+                       if (($item["body"] == '') && ($item["title"] != '')) {
+                               $item["body"] = $item["title"];
+                               $item["title"] = '';
                        }
 
                        if (!strstr($item["body"], '[url') && ($item['plink'] != '')) {