// Normalize

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13991 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-03-09 09:19:30 +00:00
parent 690286e0b2
commit 48e9590cf4
54 changed files with 297 additions and 320 deletions
@@ -1293,7 +1293,7 @@ class AdminProductsControllerCore extends AdminController
// if deleted image was the cover, change it to the first one
if (!Image::getCover($image->id_product))
{
$res &= Db::getInstance()->Execute('
$res &= Db::getInstance()->execute('
UPDATE `'._DB_PREFIX_.'image`
SET `cover` = 1
WHERE `id_product` = '.(int)$image->id_product.' LIMIT 1');