Revoi vers l'indes si pas d'id ou de ref en parametre
This commit is contained in:
parent
af0654271d
commit
0237a5162e
@ -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;
|
||||
}
|
||||
|
||||
|
||||
/* ************************************************************************** */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user