Skip to content

Commit

Permalink
fix: corrected undefined variable, closes #3061
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Jul 1, 2024
1 parent f400fa5 commit 30c2d3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion phpmyfaq/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
$tagSearch = true;
$tags = [];
$tagIds = explode(',', (string) $inputTag);
$relTags = '';

$tagHelper->setTaggingIds($tagIds);

Expand Down Expand Up @@ -138,7 +139,6 @@

uasort($relatedTags, static fn($a, $b) => $b - $a);
$numTags = 0;
$relTags = '';

foreach ($relatedTags as $tagId => $relevance) {
$relTags .= $tagHelper->renderRelatedTag($tagId, $tagging->getTagNameById($tagId), $relevance);
Expand All @@ -151,6 +151,7 @@
}
} else {
$searchResult = '';
$relTags = '';
}

//
Expand Down

0 comments on commit 30c2d3d

Please sign in to comment.