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)
dialup_admin/Changelog
dialup_admin/htdocs/group_new.php3
dialup_admin/htdocs/show_groups.php3

index cb53f15..acc2762 100644 (file)
@@ -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 acc0df0..a833697 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 3fbff86..16e9da6 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>