Update card.php

This commit is contained in:
Laurent Destailleur 2021-07-08 16:31:01 +02:00 committed by GitHub
parent a942183127
commit 7870336f2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1451,7 +1451,8 @@ if ($action == 'create' || $action == 'adduserldap') {
print '<span class="opacitymedium">'.$langs->trans("None").'</span>';
} else {
$huser = new User($db);
if ($huser->fetch($object->fk_user) > 0) {
if ($object->fk_user > 0) {
$huser->fetch($object->fk_user);
print $huser->getNomUrl(1);
} else {
print '<span class="opacitymedium">'.$langs->trans("None").'</span>';