write only for contact-repository sql-ldap, but not for sql and account in ldap

This commit is contained in:
Ralf Becker 2006-07-08 21:41:42 +00:00
parent cc7020f9a6
commit 8072930632

View File

@ -302,7 +302,7 @@ class accounts extends accounts_backend
{
// if we are not on a pure LDAP system, we have to write the account-date via the contacts class now
if (($GLOBALS['egw_info']['server']['account_repository'] != 'ldap' ||
$GLOBALS['egw_info']['server']['contact_repository'] != 'ldap') &&
$GLOBALS['egw_info']['server']['contact_repository'] == 'sql-ldap') &&
(!($old = $this->read($data['account_id'])) || // only for new account or changed contact-data
$old['account_firstname'] != $data['account_firstname'] ||
$old['account_lastname'] != $data['account_lastname'] ||