summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--php/admin/include/ldap.class.php2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ac61070..c195f1e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-07-10 Gunnar Wrobel <p@rdus.de>
+
+ * php/admin/include/ldap.class.php:
+
+ fixed kolab/issue1845 (incorrect check mailForDn for ldap results)
+ https://intevation.de/roundup/kolab/issue1845
+
2007-07-04 Marcus Hüwe <suse-tux@gmx.de>
* Makefile.am:
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);