From c344e263ba5316f116a2c1a60a578e9de3df674b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 30 Jan 2004 22:12:26 +0000 Subject: [PATCH] Ajout gestion erreur sur update. --- htdocs/facture.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/facture.class.php b/htdocs/facture.class.php index 017685a217b..38d84409add 100644 --- a/htdocs/facture.class.php +++ b/htdocs/facture.class.php @@ -1,5 +1,6 @@ + * Copyright (C) 2004 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -445,6 +446,8 @@ class Facture $sql = "UPDATE llx_facture set facnumber='$numfa', fk_statut = 1, fk_user_valid = $user->id WHERE rowid = $rowid ;"; $result = $this->db->query( $sql); + if (! $result) { print "Err : ".$this->db->error(); return -1; } + /* * Notify *