//fixed sql bug
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8819 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
a1854047e9
commit
474ef2b3d0
1 file changed
+1
-1
@@ -674,7 +674,7 @@ class CategoryCore extends ObjectModel
|
|||||||
FROM `'._DB_PREFIX_.'category` c3
|
FROM `'._DB_PREFIX_.'category` c3
|
||||||
WHERE c3.`nleft` > c.`nleft`
|
WHERE c3.`nleft` > c.`nleft`
|
||||||
AND c3.`nright` < c.`nright`
|
AND c3.`nright` < c.`nright`
|
||||||
AND c3.`id_category` IN ('.array_map('intval', $selectedCat).')
|
AND c3.`id_category` IN ('.pSQL($selectedCat).')
|
||||||
)' : '0').' AS nbSelectedSubCat
|
)' : '0').' AS nbSelectedSubCat
|
||||||
FROM `'._DB_PREFIX_.'category` c
|
FROM `'._DB_PREFIX_.'category` c
|
||||||
LEFT JOIN `'._DB_PREFIX_.'category_lang` cl ON c.`id_category` = cl.`id_category`'.$shop->sqlLang('cl').'
|
LEFT JOIN `'._DB_PREFIX_.'category_lang` cl ON c.`id_category` = cl.`id_category`'.$shop->sqlLang('cl').'
|
||||||
|
|||||||
Reference in new issue
Block a user