diff --git a/phpgwapi/inc/class.accounts_ldap.inc.php b/phpgwapi/inc/class.accounts_ldap.inc.php index db4847c8ef..0aa6ad3c0d 100644 --- a/phpgwapi/inc/class.accounts_ldap.inc.php +++ b/phpgwapi/inc/class.accounts_ldap.inc.php @@ -793,7 +793,9 @@ class accounts_ldap 'account_email' => 'mail', 'account_fullname' => 'cn', ); - if (!isset($to_ldap[$which]) || $account_type === 'g') return False; + if (!isset($to_ldap[$which]) || $account_type === 'g') { + return False; + } $sri = ldap_search($this->ds, $this->user_context, '(&('.$to_ldap[$which].'=' . $name . ')(objectclass=posixaccount))');