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