From bf8810e88be84b8b2b07a4145bdbc1002fc3557a Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 23 Jun 2007 17:23:18 +0000 Subject: [PATCH] fixed problem with binary data corruption --- lam/templates/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/templates/main.php b/lam/templates/main.php index 662f28c8..65eae595 100644 --- a/lam/templates/main.php +++ b/lam/templates/main.php @@ -49,7 +49,7 @@ $new_suffs = array(); // get list of active types $types = $_SESSION['config']->get_ActiveTypes(); for ($i = 0; $i < sizeof($types); $i++) { - $info = @ldap_search($_SESSION['ldap']->server, $conf->get_Suffix($types[$i]), "(objectClass=*)", array()); + $info = @ldap_search($_SESSION['ldap']->server, $conf->get_Suffix($types[$i]), "(objectClass=*)", array('objectClass')); $res = @ldap_get_entries($_SESSION['ldap']->server, $info); if (!$res && !in_array($conf->get_Suffix($types[$i]), $new_suffs)) $new_suffs[] = $conf->get_Suffix($types[$i]); }