// little fix

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12574 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot
2012-01-20 09:34:38 +00:00
parent 4f2188b12a
commit c5199f4347
+1 -2
View File
@@ -974,7 +974,6 @@ class ToolsCore
{
$interval = Category::getInterval($id_category);
$id_root_category = $context->shop->getCategory();
$root_category = new Category($id_root_category);
$intervalRoot = Category::getInterval($id_root_category);
if ($interval)
{
@@ -987,7 +986,7 @@ class ToolsCore
AND c.nright <= '.$intervalRoot['nright'].'
AND cl.id_lang = '.(int)$context->language->id.'
AND c.active = 1
AND c.level_depth > '.(int)$root_category->level_depth.'
AND c.level_depth > '.(int)$intervalRoot['level_depth'].'
ORDER BY c.level_depth ASC';
$categories = Db::getInstance()->executeS($sql);