]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
selected array should be reinitialized on each
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 21 Jan 2013 11:29:22 +0000 (11:29 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 21 Jan 2013 11:32:53 +0000 (11:32 +0000)
iteration of i to avoid more than one "selected" operator
in the dropdown.

As posted by Octavio Alvarez.

dialup_admin/htdocs/user_edit.php

index 0f8e9d777544e64f361cb7724c530e208a980f33..0dc4083ab20a09c243346d8aeee1d2e2fc364e7a 100644 (file)
@@ -144,7 +144,6 @@ EOM;
                if ($name == 'none')
                        continue;
                unset($vals);
-               unset($selected);
                unset($ops);
                $def_added = 0;
                if ($item_vals["$key"][count]){
@@ -179,6 +178,7 @@ EOM;
 
                $i = 0;
                foreach($vals as $val){
+                       unset($selected);
                        $name1 = $name . $i;
                        $val = preg_replace('/"/','&quot;',$val);
                        $oper_name = $name1 . '_op';