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

@ -166,7 +166,6 @@ if ($_POST["action"] == 'update' &&
$mesg = $langs->trans("ErrorProductBadRefOrLabel"); $mesg = $langs->trans("ErrorProductBadRefOrLabel");
} }
// Produit spécifique // Produit spécifique
if ($product->canvas <> '' && file_exists('canvas/product.'.$product->canvas.'.class.php') ) 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;
}
/* ************************************************************************** */ /* ************************************************************************** */