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