From: Roland Haeder Date: Fri, 31 Mar 2017 18:44:38 +0000 (+0200) Subject: $tagged is being initialized but not written to until the foreach() loop is X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=eab654dd65ed8008891caa2f632649f2fcfba852;p=friendica.git $tagged is being initialized but not written to until the foreach() loop is being executed. Maybe here is old-lost code anyway? Signed-off-by: Roland Haeder --- diff --git a/mod/item.php b/mod/item.php index bcf7a4b469..3c5fcd9abb 100644 --- a/mod/item.php +++ b/mod/item.php @@ -581,6 +581,7 @@ function item_post(App $a) { * Robert Johnson should be first in the $tags array */ $fullnametagged = false; + /// @TODO $tagged is initialized above if() block and is not filled, maybe old-lost code? foreach ($tagged as $nextTag) { if (stristr($nextTag, $tag . ' ')) { $fullnametagged = true;