diff --git a/blocktopmenu.php b/blocktopmenu.php index eb43c8a..6695ea6 100644 --- a/blocktopmenu.php +++ b/blocktopmenu.php @@ -599,7 +599,7 @@ class Blocktopmenu extends Module $html .= '
  • '; foreach ($files as $file) - if (preg_match('/'.$category['id_category'].'-([0-9])?_thumb.jpg/i', $file) === 1) + if (preg_match('/^'.$category['id_category'].'-([0-9])?_thumb.jpg/i', $file) === 1) $html .= '
    '.Tools::SafeOutput($category['name']).'
    ';