Fix: Si auteur non renseigné on ne cherche pas à le récupérer en base.
This commit is contained in:
parent
8c5f49cf08
commit
73a41f14ee
@ -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\"> </td>";
|
||||||
|
}
|
||||||
print "</tr>";
|
print "</tr>";
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user