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; +} /* ************************************************************************** */