// Fix #PSCFV-4161
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17402 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
4a1fd5e336
commit
77e04afcec
1 file changed
+2
-2
+2
-2
@@ -207,9 +207,9 @@ class ImageCore extends ObjectModel
|
|||||||
public static function getCover($id_product)
|
public static function getCover($id_product)
|
||||||
{
|
{
|
||||||
return Db::getInstance()->getRow('
|
return Db::getInstance()->getRow('
|
||||||
SELECT * FROM `'._DB_PREFIX_.'image` i
|
SELECT * FROM `'._DB_PREFIX_.'image` i'.
|
||||||
WHERE `id_product` = '.(int)$id_product.
|
|
||||||
Shop::addSqlAssociation('image', 'i').'
|
Shop::addSqlAssociation('image', 'i').'
|
||||||
|
WHERE `id_product` = '.(int)$id_product.'
|
||||||
AND image_shop.`cover`= 1');
|
AND image_shop.`cover`= 1');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user