From e2bb182a77f0bf61eb8a2276e3d42c7c25e12ad2 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 9 Jun 2006 13:21:47 +0000 Subject: [PATCH] bugfix --- htdocs/commande/fiche.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 1abe3f8cfc3..a87b40af118 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -287,7 +287,8 @@ if ($_POST['action'] == 'confirm_delete' && $_POST['confirm'] == 'yes') if ($user->rights->commande->supprimer ) { $commande = new Commande($db); - $commande->id = $_GET['id']; + //$commande->id = $_GET['id']; + $commande->fetch($_GET['id']); $commande->delete(); Header('Location: index.php'); exit;