// merge 6001,6010,6012,6013

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@6018 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-04-21 08:01:09 +00:00
parent 2430f917d5
commit 38cf360a0b
5 changed files with 15 additions and 13 deletions
+4 -3
View File
@@ -119,12 +119,13 @@ class PackCore extends Product
public static function getPacksTable($id_product, $id_lang, $full = false, $limit = NULL)
{
$packs = Db::getInstance()->getValue('
SELECT GROUP_CONCAT(a.`id_product_pack`, ",")
SELECT GROUP_CONCAT(a.`id_product_pack`)
FROM `'._DB_PREFIX_.'pack` a
WHERE a.`id_product_item` = '.(int)$id_product.')');
WHERE a.`id_product_item` = '.(int)$id_product);
if (!(int)$packs)
return array();
$sql = '
SELECT p.*, pl.*, i.`id_image`, il.`legend`, t.`rate`
FROM `'._DB_PREFIX_.'product` p