From a113a9674e75fa3d0cfb012543aa1705ab394e4b Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 19 Feb 2006 17:48:20 +0000 Subject: [PATCH] Ajout navigation next et preview --- htdocs/product/categorie.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/product/categorie.php b/htdocs/product/categorie.php index 6f19162f1d4..9b3e996f59c 100644 --- a/htdocs/product/categorie.php +++ b/htdocs/product/categorie.php @@ -37,8 +37,9 @@ $types[1] = $langs->trans("Service"); */ if ($_GET["id"] || $_GET["ref"]) { - if ($_GET["ref"]) $result = $product->fetch('',$_GET["ref"]); - if ($_GET["id"]) $result = $product->fetch($_GET["id"]); + $product = new Product($db); + if ($_GET["ref"]) $result = $product->fetch('',$_GET["ref"]); + if ($_GET["id"]) $result = $product->fetch($_GET["id"]); } llxHeader("","",$langs->trans("CardProduct0"));