From eab654dd65ed8008891caa2f632649f2fcfba852 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 31 Mar 2017 20:44:38 +0200 Subject: [PATCH] $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 --- mod/item.php | 1 + 1 file changed, 1 insertion(+) 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;