Fix: Error in deleting customer order

This commit is contained in:
Laurent Destailleur
2010-02-20 18:43:19 +00:00
parent 605d43a2ec
commit fad16cf338
2 changed files with 30 additions and 17 deletions

View File

@@ -97,9 +97,16 @@ if ($_REQUEST['action'] == 'confirm_delete' && $_REQUEST['confirm'] == 'yes')
{
$commande = new Commande($db);
$commande->fetch($_GET['id']);
$commande->delete($user);
Header('Location: index.php');
exit;
$result=$commande->delete($user);
if ($result > 0)
{
Header('Location: index.php');
exit;
}
else
{
$mesg=$commande->error;
}
}
}