[-] MO : #PNM-32 - Bad regex on blocklayered

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14256 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte
2012-03-26 12:55:56 +00:00
parent 2adf274226
commit d879826a23
+1 -1
View File
@@ -2159,7 +2159,7 @@ class BlockLayered extends Module
foreach ($_GET as $key => $value)
if (substr($key, 0, 8) == 'layered_')
{
preg_match('/^(.*)_[0-9|new|used|refurbished|slider]+$/', substr($key, 8, strlen($key) - 8), $res);
preg_match('/^(.*)_([0-9]+|new|used|refurbished|slider)$/', substr($key, 8, strlen($key) - 8), $res);
if (isset($res[1]))
{
$tmp_tab = explode('_', $value);