summaryrefslogtreecommitdiff
path: root/php/admin/include/ldap.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'php/admin/include/ldap.class.php')
-rw-r--r--php/admin/include/ldap.class.php2
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);