[-] BO : fix #PSCFI-5408

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14620 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2012-04-13 08:02:06 +00:00
parent 0b5dc7128d
commit a11f0a7828
+3 -1
View File
@@ -222,8 +222,10 @@ class ManufacturerCore extends ObjectModel
}
$total_manufacturers = count($manufacturers);
$rewrite_settings = (int)Configuration::get('PS_REWRITING_SETTINGS');
for ($i = 0; $i < $total_manufacturers; $i++)
if ((int)Configuration::get('PS_REWRITING_SETTINGS'))
if ($rewrite_settings)
$manufacturers[$i]['link_rewrite'] = Tools::link_rewrite($manufacturers[$i]['name'], false);
else
$manufacturers[$i]['link_rewrite'] = 0;