diff --git a/lib/ilias_interface/IliasSoap.class.php b/lib/ilias_interface/IliasSoap.class.php index f9ffccae86a5b0e3fe4b1b207b2412a316585be4..7911e9e2af0bdaffeacad9dbf55ee03dc1bc54d3 100644 --- a/lib/ilias_interface/IliasSoap.class.php +++ b/lib/ilias_interface/IliasSoap.class.php @@ -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'])) : ''; } /**