[*] CORE : Remove duplicate SQL queries
This commit is contained in:
@@ -572,7 +572,7 @@ class Blocktopmenu extends Module
|
||||
switch (substr($item, 0, strlen($value[1])))
|
||||
{
|
||||
case 'CAT':
|
||||
$this->getCategory((int)$id);
|
||||
$this->getCategory($id, $id_lang, $id_shop);
|
||||
break;
|
||||
|
||||
case 'PRD':
|
||||
@@ -687,9 +687,7 @@ class Blocktopmenu extends Module
|
||||
|
||||
if (isset($children) && count($children))
|
||||
foreach ($children as $child)
|
||||
{
|
||||
$this->getCategoryOption((int)$child['id_category'], (int)$id_lang, (int)$child['id_shop']);
|
||||
}
|
||||
}
|
||||
|
||||
private function getCategory($id_category, $id_lang = false, $id_shop = false)
|
||||
|
||||
Reference in New Issue
Block a user