Fix: Si auteur non renseigné on ne cherche pas à le récupérer 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 // Author
print "<tr><td>".$langs->trans("Author")."</td>"; print "<tr><td>".$langs->trans("Author")."</td>";
$author=new User($db,$objp->fk_user_author); if ($objp->fk_user_author) {
$author->fetch(); $author=new User($db,$objp->fk_user_author);
print "<td colspan=\"3\">".$author->fullname."</td>"; $author->fetch();
print "<td colspan=\"3\">".$author->fullname."</td>";
} else {
print "<td colspan=\"3\">&nbsp;</td>";
}
print "</tr>"; print "</tr>";
$i++; $i++;