]> git.mxchange.org Git - friendica.git/commitdiff
Avoid empty needle warning
authorMichael <heluecht@pirati.ca>
Mon, 29 Jan 2018 06:03:39 +0000 (06:03 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 29 Jan 2018 06:03:39 +0000 (06:03 +0000)
src/Protocol/Feed.php

index ed421d8532c7b9ebfa3bc9e30bc2342b1dfcae03..203a2e83565d27396dcb4dc7486e17e8a5bab5a8 100644 (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]";
                                }
                        }