Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit ec7150a

Browse files
committed
fix: getPerunUser name construction
1 parent dd02c0b commit ec7150a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/AdapterRpc.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,16 @@ public function getPerunUser($idpEntityId, $uids)
8383
if (!empty($user['titleBefore'])) {
8484
$name .= $user['titleBefore'] . ' ';
8585
}
86-
if (!empty($user['titleBefore'])) {
86+
if (!empty($user['firstName'])) {
8787
$name .= $user['firstName'] . ' ';
8888
}
89-
if (!empty($user['titleBefore'])) {
89+
if (!empty($user['middleName'])) {
9090
$name .= $user['middleName'] . ' ';
9191
}
92-
if (!empty($user['titleBefore'])) {
92+
if (!empty($user['lastName'])) {
9393
$name .= $user['lastName'];
9494
}
95-
if (!empty($user['titleBefore'])) {
95+
if (!empty($user['titleAfter'])) {
9696
$name .= ' ' . $user['titleAfter'];
9797
}
9898

0 commit comments

Comments
 (0)