mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-02 04:43:46 +01:00
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:
parent
02c21fe2f9
commit
9370dbf116
@ -220,7 +220,7 @@ class Udm
|
|||||||
{
|
{
|
||||||
// set existing values
|
// set existing values
|
||||||
$get_headers = [];
|
$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 = [];
|
$headers = [];
|
||||||
return $this->call('users/user/', 'PUT', $payload, $headers, $get_headers['etag'], true);
|
return $this->call('users/user/', 'PUT', $payload, $headers, $get_headers['etag'], true);
|
||||||
@ -310,7 +310,7 @@ class Udm
|
|||||||
{
|
{
|
||||||
// set existing values
|
// set existing values
|
||||||
$get_headers = [];
|
$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 = [];
|
$headers = [];
|
||||||
return $this->call('groups/group/', 'PUT', $payload, $headers, $get_headers['etag'], true);
|
return $this->call('groups/group/', 'PUT', $payload, $headers, $get_headers['etag'], true);
|
||||||
|
Loading…
Reference in New Issue
Block a user