fix Argument 2 passed to EGroupware\Api\Accounts\Univention\Udm::user2udm() must be of the type array, null given

GET to users/user/$dn returns just the entry
This commit is contained in:
Ralf Becker 2019-07-30 19:44:22 +02:00
parent 02c21fe2f9
commit 9370dbf116

View File

@ -220,7 +220,7 @@ class Udm
{
// set existing values
$get_headers = [];
$payload = $this->user2udm($data, $this->call('users/user/'.urlencode($dn), 'GET', [], $get_headers)['entry']);
$payload = $this->user2udm($data, $this->call('users/user/'.urlencode($dn), 'GET', [], $get_headers));
$headers = [];
return $this->call('users/user/', 'PUT', $payload, $headers, $get_headers['etag'], true);
@ -310,7 +310,7 @@ class Udm
{
// set existing values
$get_headers = [];
$payload = $this->user2udm($data, $this->call('groups/group/'.urlencode($dn), 'GET', [], $get_headers)['entry']);
$payload = $this->user2udm($data, $this->call('groups/group/'.urlencode($dn), 'GET', [], $get_headers));
$headers = [];
return $this->call('groups/group/', 'PUT', $payload, $headers, $get_headers['etag'], true);