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++;