Fix: Si auteur non renseign on ne cherche pas le rcuprer en base.

This commit is contained in:
Laurent Destailleur 2005-05-11 02:01:32 +00:00
parent 8c5f49cf08
commit 73a41f14ee

View File

@ -234,9 +234,13 @@ if ($result)
// Author
print "<tr><td>".$langs->trans("Author")."</td>";
$author=new User($db,$objp->fk_user_author);
$author->fetch();
print "<td colspan=\"3\">".$author->fullname."</td>";
if ($objp->fk_user_author) {
$author=new User($db,$objp->fk_user_author);
$author->fetch();
print "<td colspan=\"3\">".$author->fullname."</td>";
} else {
print "<td colspan=\"3\">&nbsp;</td>";
}
print "</tr>";
$i++;