Merge pull request #4358 from annando/empty-needle

Avoid empty needle warning
This commit is contained in:
Tobias Diekershoff 2018-01-29 07:23:32 +01:00 committed by GitHub
commit 5cae43c8c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -415,7 +415,7 @@ class Feed {
$item["body"] .= "\n".$item['tag'];
}
// Add the link to the original feed entry if not present in feed
if (!strstr($item["body"], $item['plink']) && ($item['plink'] != '')) {
if (($item['plink'] != '') && !strstr($item["body"], $item['plink'])) {
$item["body"] .= "[hr][url]".$item['plink']."[/url]";
}
}