From 9eee785cc0a67d2ce12d92c76af712a5ac67bd74 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 7 Dec 2005 02:32:56 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Si=20facture=20n'a=20pas=20d'auteur=20de?= =?UTF-8?q?=20renseign=E9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/facture.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index e8a3d23c883..3d2813852c2 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1098,8 +1098,11 @@ else $soc->fetch($fac->socidp); $author = new User($db); - $author->id = $fac->user_author; - $author->fetch(); + if ($fac->user_author) + { + $author->id = $fac->user_author; + $author->fetch(); + } $head = facture_prepare_head($fac);