Skip to content
Snippets Groups Projects
Commit b8a4978e authored by André Noack's avatar André Noack Committed by Jan-Hendrik Willms
Browse files

Resolve #3966 "ILIAS Schnittstelle: SOAP Methode getUser wird noch an einer Stelle verwendet"

Closes #3966

Merge request studip/studip!2819
parent dd904f39
No related branches found
No related tags found
No related merge requests found
......@@ -952,13 +952,9 @@ class IliasSoap extends StudipSoapClient
*/
function getUserFullname($user_id)
{
$param = [
'sid' => $this->getSID(),
'user_id' => $user_id,
];
$result = $this->call('getUser', $param); // returns user data array
$objects = $result;
return trim(sprintf('%s %s %s', $result['title'], $result['firstname'], $result['lastname']));
$result = $this->getUser($user_id);
return !empty($result) ? trim(sprintf('%s %s %s', $result['title'], $result['firstname'], $result['lastname'])) : '';
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment