]> git.entuzijast.net Git - freeradius-dialup-admin.git/commitdiff
Wrong foreach in show_groups and group_new.
authorkkalev <kkalev>
Sat, 31 Jul 2004 06:57:11 +0000 (06:57 +0000)
committerkkalev <kkalev>
Sat, 31 Jul 2004 06:57:11 +0000 (06:57 +0000)
Changelog
htdocs/group_new.php3
htdocs/show_groups.php3

index cb53f152dbf7095fa123909a2bd321523216d0c5..acc2762dfde1eb2d809097c448336c246b6c0476 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -15,6 +15,7 @@ Ver 1.75:
 * Enlarge the width for the left frame
 * Make show_groups and the drop down menu in group_new work
 * Use lower cased row names in badusers page
+* Wrong foreach in show_groups and group_new.
 Ver 1.72:
 * Move the xlat function to a separate file in lib/xlat.php3
 * Add a lib/sql/nas_list.php3 to also get the nas list from sql (naslist.conf still works)
index acc0df0c13dc90ff320599a936dd5cf6492e2f54..a833697d8cf5c660a01672df00b3b32deb0bb6bd 100644 (file)
@@ -95,7 +95,7 @@ EOM;
                        echo "<b>No groups available</b>\n";
                else{
                        echo "<select name=\"existing_groups\">\n";     
-                       foreach ($existing_groups as $count => $group)
+                       foreach ($existing_groups as $group => $count)
                                echo "<option value=\"$group\">$group\n";
                        echo "</select>\n";
                }
index 3fbff86959097010b649e74a0a7955f736c257e6..16e9da6c22b0204d7c1fa2643246bc0f6594a5e9 100644 (file)
@@ -73,7 +73,7 @@ unset($login);
 $num = 0;
 include_once("../lib/$config[general_lib_type]/group_info.php3");
 if (isset($existing_groups)){
-       foreach ($existing_groups as $num_members => $group){
+       foreach ($existing_groups as $group => $num_members){
                $num++;
                echo <<<EOM
                <tr align=center>