Fix: Si facture n'a pas d'auteur de renseign

This commit is contained in:
Laurent Destailleur 2005-12-07 02:32:56 +00:00
parent 2ddcb724bd
commit 9eee785cc0

View File

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