Skip to content

Commit

Permalink
feat: compatibiliy with glpi 9.5
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Mar 10, 2020
1 parent 80f405b commit 20ca8e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion inc/fields/actorfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,11 @@ public function displayField($canEdit = true) {
} else {
$user = new User();
$user->getFromDB($item);
$value[] = $user->getRawName();
if (method_exists($user, 'getFriendlyName')) {
$value[] = $user->getFriendlyName();
} else {
$value[] = $user->getRawName();
}
}
}
echo implode('<br>', $value);
Expand Down

0 comments on commit 20ca8e0

Please sign in to comment.