From: Michael Date: Mon, 29 Jan 2018 06:03:39 +0000 (+0000) Subject: Avoid empty needle warning X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6d19c780d9b26a02f883563c6552f1a4f999d262;p=friendica.git Avoid empty needle warning --- diff --git a/src/Protocol/Feed.php b/src/Protocol/Feed.php index ed421d8532..203a2e8356 100644 --- a/src/Protocol/Feed.php +++ b/src/Protocol/Feed.php @@ -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]"; } }