From 6e383a2d38a623281ff3252795c7feefbb785ac9 Mon Sep 17 00:00:00 2001 From: Axome Date: Mon, 17 Jun 2013 10:16:13 +0200 Subject: [PATCH] Prevent false error for product duplication --- classes/Category.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Category.php b/classes/Category.php index a77f122d9..170ed09dd 100644 --- a/classes/Category.php +++ b/classes/Category.php @@ -796,7 +796,7 @@ class CategoryCore extends ObjectModel )).')'; $flag = Db::getInstance()->execute(' - INSERT INTO `'._DB_PREFIX_.'category_product` (`id_product`, `id_category`, `position`) + INSERT IGNORE INTO `'._DB_PREFIX_.'category_product` (`id_product`, `id_category`, `position`) VALUES '.implode(',', $row) ); return $flag;