From 0237a5162ec9a94d7abc0bd4558870eddaa44767 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sun, 17 Dec 2006 12:37:47 +0000 Subject: [PATCH] Revoi vers l'indes si pas d'id ou de ref en parametre --- htdocs/product/fiche.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index f082c16c0e5..5a0fc57f6a6 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -165,8 +165,7 @@ if ($_POST["action"] == 'update' && $_GET["id"] = $_POST["id"]; $mesg = $langs->trans("ErrorProductBadRefOrLabel"); } - - + // Produit spécifique if ($product->canvas <> '' && file_exists('canvas/product.'.$product->canvas.'.class.php') ) { @@ -868,6 +867,11 @@ if ($_GET["id"] || $_GET["ref"]) } } } +else +{ + Header("Location: index.php"); + exit; +} /* ************************************************************************** */