diff options
author | Gunnar Wrobel <wrobel@pardus.de> | 2007-07-10 15:39:48 (GMT) |
---|---|---|
committer | Gunnar Wrobel <wrobel@pardus.de> | 2007-07-10 15:39:48 (GMT) |
commit | 0af13c5dba046ce67bfccb72b29edacbfe875243 (patch) | |
tree | 9548f7aa18a618630626e87ae93bbdadca5671b5 /php/admin | |
parent | 18b247a61d92a2e297577f2786d1de389e4a70bf (diff) | |
download | kolab-webadmin-0af13c5dba046ce67bfccb72b29edacbfe875243.tar.gz |
fixed kolab/issue1845 (incorrect check mailForDn for ldap results)
https://intevation.de/roundup/kolab/issue1845
Diffstat (limited to 'php/admin')
-rw-r--r-- | php/admin/include/ldap.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/php/admin/include/ldap.class.php b/php/admin/include/ldap.class.php index d747399..748fb6f 100644 --- a/php/admin/include/ldap.class.php +++ b/php/admin/include/ldap.class.php @@ -208,7 +208,7 @@ class KolabLDAP { if( $res ) { $entries = ldap_get_entries( $this->connection, $res ); ldap_free_result( $res ); - if( $entries['count'] == 1 ) { + if( $entries[0]['count'] == 1 ) { return $entries[0]['mail'][0]; } else { $errors[] = sprintf( _("No such object %s"), $dn); |