mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +01:00
* LDAP: fix error creating a new group without a description
This commit is contained in:
parent
df166d4f43
commit
1d7ca88a1d
@ -607,7 +607,7 @@ class Ldap
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Merges the group releavant account data from $data into $to_write
|
* Merges the group relevant account data from $data into $to_write
|
||||||
*
|
*
|
||||||
* @internal
|
* @internal
|
||||||
* @param array $to_write data to write to ldap incl. objectclass ($data is NOT yet merged)
|
* @param array $to_write data to write to ldap incl. objectclass ($data is NOT yet merged)
|
||||||
@ -621,7 +621,7 @@ class Ldap
|
|||||||
// do not overwrite existing description, if non is given
|
// do not overwrite existing description, if non is given
|
||||||
if (isset($data['account_description']) &&
|
if (isset($data['account_description']) &&
|
||||||
// make sure NOT to unset description for new groups, give a "Protocol error"
|
// make sure NOT to unset description for new groups, give a "Protocol error"
|
||||||
(!empty($data['account_id']) || !empty($data['account_description'])))
|
($old || !empty($data['account_description'])))
|
||||||
{
|
{
|
||||||
$to_write['description'] = !empty($data['account_description']) ? $data['account_description'] : array();
|
$to_write['description'] = !empty($data['account_description']) ? $data['account_description'] : array();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user