fix filter

This commit is contained in:
quenousimporte 2024-10-10 10:47:54 +02:00
parent 5455fe1c44
commit 71635ab255
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@
echo '<div><a href=note.php?title=' . urlencode($name) . '>' . $name .'</a>'; echo '<div><a href=note.php?title=' . urlencode($name) . '>' . $name .'</a>';
if ($filter && str_contains(cleanstring($content), cleanstring($filter))) if ($filter && str_contains(cleanstring($content), cleanstring($filter)))
{ {
$pos = strpos(cleanstring($content), cleanstring($$filter)); $pos = strpos(cleanstring($content), cleanstring($filter));
echo '<span class="grey"> ' . $filter . substr($content, $pos + strlen($filter), 42) . '</span>'; echo '<span class="grey"> ' . $filter . substr($content, $pos + strlen($filter), 42) . '</span>';
} }
echo'</div>'; echo'</div>';