Fix LDAP filtering, I think.

This commit is contained in:
Miles Lott 2001-03-29 09:56:43 +00:00
parent d567722a61
commit 7be7aa0595
2 changed files with 2 additions and 3 deletions

View File

@ -359,8 +359,7 @@
//echo '<br>first total="'.$total.'"';
// Now, remove duplicate rows
if (!$PHP_VERSION) global $PHP_VERSION;
if (floor($PHP_VERSION ) == 4) {
if (floor(phpversion()) == 4) {
$tmp = array_unique($ldap_fields);
$ldap_fields = $tmp;
} else {

View File

@ -210,7 +210,7 @@
if ($allmatched)
{
if($DEBUG) { echo $ldap_fields[$i]["uidnumber"][0].' matched all!'."<br>"; }
$new_ldap[$i] = $ldap_fields[$i];
$new_ldap[] = $ldap_fields[$i];
}
else
{