From: Michael Vogel Date: Wed, 27 Nov 2013 21:26:27 +0000 (+0100) Subject: appnetpost: Avoiding a php warning X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cf2f874db12fbf44c355a42afd21d1883f4f1748;p=friendica-addons.git appnetpost: Avoiding a php warning --- diff --git a/appnetpost/appnetpost.php b/appnetpost/appnetpost.php index ca6d5d27..c1b1f175 100644 --- a/appnetpost/appnetpost.php +++ b/appnetpost/appnetpost.php @@ -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);