From 25cbc9c6941223c329d04d0d37d4f1952fb485be Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 10 May 2006 14:59:53 +0000 Subject: [PATCH] Fixed problem with non existing dn's git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3270 594d385d-05f5-0310-b6e9-bd551577e9d8 --- TODO | 1 + include/class_plugin.inc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index 3a7cfd1d2..9080d5584 100644 --- a/TODO +++ b/TODO @@ -33,6 +33,7 @@ Now: will have to other plugins * Enhance show_ldap_error() with an additional programmer supplied message * Change FAIstate when triggering actions +* Changing LDAP-Servers -> start tab! Target for 2.5: diff --git a/include/class_plugin.inc b/include/class_plugin.inc index bab07709a..4b0248f36 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -930,7 +930,7 @@ class plugin $ldap= $this->config->get_ldap_link(); $ldap->cat($dn, array('gosaUnitTag', 'objectClass')); $attrs= $ldap->fetch(); - if (!in_array_ics("gosaAdministrativeUnitTag", $attrs['objectClass'])){ + if (isset($attrs['objectClass']) && !in_array_ics("gosaAdministrativeUnitTag", $attrs['objectClass'])){ echo "DEBUG: $dn is not tagged
"; return; } -- 2.30.2