From 7f49100187571866715ef616a2eab17ef74400bd Mon Sep 17 00:00:00 2001 From: sfroment42 Date: Fri, 22 Aug 2014 10:19:21 +0200 Subject: [PATCH] [-] MO : Fix PSCSX-3021 regex can't fail --- blocktopmenu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']).'
    ';