]> git.entuzijast.net Git - freeradius-dialup-admin.git/commitdiff
Fix a small bug in lib/ldap/defaults.php3. We should not be using $i in a for() loop...
authorkkalev <kkalev>
Sat, 12 Oct 2002 11:45:31 +0000 (11:45 +0000)
committerkkalev <kkalev>
Sat, 12 Oct 2002 11:45:31 +0000 (11:45 +0000)
Changelog
lib/ldap/defaults.php3

index ac79fbc7e050ae0d3fa9d71040399d0e0de1ee41..226aec2d9e0bf98dac187164801b9509cfab31ff 100644 (file)
--- 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
index c1196eb8c8160026401f0eedf0d4f4cd260c219d..4b868a3fa15169653b116a787a16f4b89661ff56 100644 (file)
@@ -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