From: kkalev Date: Sat, 12 Oct 2002 11:45:31 +0000 (+0000) Subject: Fix a small bug in lib/ldap/defaults.php3. We should not be using $i in a for() loop... X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=2a46fa43a6f1a3a4735931229e64a8a693fbb8d2;p=freeradius-dialup-admin.git Fix a small bug in lib/ldap/defaults.php3. We should not be using $i in a for() loop but a new variable --- diff --git a/Changelog b/Changelog index ac79fbc..226aec2 100644 --- a/Changelog +++ b/Changelog @@ -24,6 +24,7 @@ Ver 1.60: * Allow for multiple regular profile attributes in a user entry. * Allow for normal ldap user attributes to be utf8 encoded instead of ascii. Changing attribute values through user_info will not work in that case. +* Fix a small bug in lib/ldap/defaults.php3. We should not be using $i in a for() loop but a new variable Ver 1.59: * Small html fixes in user_edit.php3 and password.php3 * Show number of failed logins in the last 7 days in the user admin page diff --git a/lib/ldap/defaults.php3 b/lib/ldap/defaults.php3 index c1196eb..4b868a3 100644 --- a/lib/ldap/defaults.php3 +++ b/lib/ldap/defaults.php3 @@ -39,8 +39,8 @@ if ($config[ldap_default_dn] != ''){ if (!isset($default_vals["$key"])) $default_vals["$key"] = array(); if ($attrmap[generic]["$key"] == 'generic'){ - for($i=0;$i<$info2[0]["$val"][count];$i++) - $default_vals["$key"][] = $info2[0]["$val"][$i]; + for($j=0;$j<$info2[0]["$val"][count];$j++) + $default_vals["$key"][] = $info2[0]["$val"][$j]; $default_vals["$key"][count] += $info2[0]["$val"][count]; } else