From 88050e219fb3d25e22b593bfef9f63245dc25108 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 25 Mar 2003 15:59:09 +0000 Subject: [PATCH] ? --- htdocs/boutique/livre/fiche.php | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/htdocs/boutique/livre/fiche.php b/htdocs/boutique/livre/fiche.php index d07f9f91eb7..c164a621bc7 100644 --- a/htdocs/boutique/livre/fiche.php +++ b/htdocs/boutique/livre/fiche.php @@ -80,7 +80,10 @@ if ($action == 'update' && !$cancel) { $livre->editeurid = $editeurid; $livre->description = $desc; - $livre->update($id, $user); + if (!$livre->update($id, $user)) + { + $action = 'edit'; + } } if ($action == 'updateosc') { @@ -156,11 +159,24 @@ else print ""; print 'Référence'; print "Description"; - print 'Titre'; - print '"; + print 'Titre'; + print 'Année'; print 'Prix'; $htmls = new Form($db);