From 272b16fe1a111387362e2266bce4e7d2225c72df Mon Sep 17 00:00:00 2001 From: BENKE Charlie Date: Thu, 6 Oct 2016 08:36:21 +0200 Subject: [PATCH] Duplicate product declation Once is enough --- htdocs/product/card.php | 1 - 1 file changed, 1 deletion(-) diff --git a/htdocs/product/card.php b/htdocs/product/card.php index cfcf253eb31..db08c8303ce 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -80,7 +80,6 @@ $extrafields = new ExtraFields($db); // fetch optionals attributes and labels $extralabels=$extrafields->fetch_name_optionals_label($object->table_element); -$object = new Product($db); if ($id > 0 || ! empty($ref)) { $result = $object->fetch($id, $ref);