mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +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
|
||||
* @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
|
||||
if (isset($data['account_description']) &&
|
||||
// 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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user