]> git.mxchange.org Git - friendica-addons.git/commitdiff
appnetpost: Avoiding a php warning
authorMichael Vogel <icarus@dabo.de>
Wed, 27 Nov 2013 21:26:27 +0000 (22:26 +0100)
committerMichael Vogel <icarus@dabo.de>
Wed, 27 Nov 2013 21:26:27 +0000 (22:26 +0100)
appnetpost/appnetpost.php

index ca6d5d27ed02cd6347decfad5e0d7a0207c1f0e1..c1b1f175816fea0234ac032753e5a35db28e70d8 100644 (file)
@@ -371,7 +371,7 @@ function appnetpost_feeditem($pid, $uid) {
                        $title = substr($title, 0, -3)."...";
                }
 
-               if (!strstr($title, $msglink))
+               if (($msglink != "") AND !strstr($title, $msglink))
                        $title = trim($title." ".$msglink);
                else
                        $title = trim($title);