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 *