summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@pardus.de>2007-07-10 15:39:48 (GMT)
committerGunnar Wrobel <wrobel@pardus.de>2007-07-10 15:39:48 (GMT)
commit0af13c5dba046ce67bfccb72b29edacbfe875243 (patch)
tree9548f7aa18a618630626e87ae93bbdadca5671b5
parent18b247a61d92a2e297577f2786d1de389e4a70bf (diff)
downloadkolab-webadmin-0af13c5dba046ce67bfccb72b29edacbfe875243.tar.gz
fixed kolab/issue1845 (incorrect check mailForDn for ldap results)
https://intevation.de/roundup/kolab/issue1845
-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);