From 054a4e42c0623e06c33e6102def1fbeed5058041 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 13 Jan 2006 10:22:43 +0000 Subject: [PATCH] Updated ldap class git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2475 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_ldap.inc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/include/class_ldap.inc b/include/class_ldap.inc index c22730ab1..255f0ddfd 100644 --- a/include/class_ldap.inc +++ b/include/class_ldap.inc @@ -405,7 +405,12 @@ class LDAP{ $attr[$key] = $attr[$key][0]; } } - if(isset($attr[$key]['count'])) unset($attr[$key]['count']); + + if(isset($attr[$key]['count'])){ + if(is_array($attr[$key])){ + unset($attr[$key]['count']); + } + } } unset($attr['count']); unset($attr['dn']); @@ -426,7 +431,11 @@ class LDAP{ $attr[$key] = $attr[$key][0]; } } - if(isset($attr[$key]['count'])) unset($attr[$key]['count']); + if(isset($attr[$key]['count'])){ + if(is_array($attr[$key])){ + unset($attr[$key]['count']); + } + } } unset($attr['count']); unset($attr['dn']); -- 2.30.2