From 73a41f14eec09002a0221049b8333959126adea8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 11 May 2005 02:01:32 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Si=20auteur=20non=20renseign=E9=20on=20n?= =?UTF-8?q?e=20cherche=20pas=20=E0=20le=20r=E9cup=E9rer=20en=20base.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/bank/ligne.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/htdocs/compta/bank/ligne.php b/htdocs/compta/bank/ligne.php index d28e3f46bfb..4be2ac573b3 100644 --- a/htdocs/compta/bank/ligne.php +++ b/htdocs/compta/bank/ligne.php @@ -234,9 +234,13 @@ if ($result) // Author print "".$langs->trans("Author").""; - $author=new User($db,$objp->fk_user_author); - $author->fetch(); - print "".$author->fullname.""; + if ($objp->fk_user_author) { + $author=new User($db,$objp->fk_user_author); + $author->fetch(); + print "".$author->fullname.""; + } else { + print " "; + } print ""; $i++;