1
1
Fork 0

Small formatting issue

This commit is contained in:
Michael 2017-08-27 07:02:44 +00:00
parent a36c8a0173
commit d8acb62ba6

View file

@ -346,12 +346,10 @@ function feed_import($xml,$importer,&$contact, &$hub, $simulate = false) {
}
$item["body"] = html2bbcode($body);
if ($item["body"] == "") {
if ($item["title"] != '') {
if (($item["body"] == '') && ($item["title"] != '')) {
$item["body"] = $item["title"];
$item["title"] = '';
}
}
if (!strstr($item["body"], '[url') && ($item['plink'] != '')) {
$item["body"] .= "\n[hr]\n[url]".$item['plink']."[/url]";