Revoi vers l'indes si pas d'id ou de ref en parametre

This commit is contained in:
Rodolphe Quiedeville 2006-12-17 12:37:47 +00:00
parent af0654271d
commit 0237a5162e

View File

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