diff options
Diffstat (limited to 'view/acl_selectors.php')
-rw-r--r-- | view/acl_selectors.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/view/acl_selectors.php b/view/acl_selectors.php index 7a8072af6..e5df4c65e 100644 --- a/view/acl_selectors.php +++ b/view/acl_selectors.php @@ -13,12 +13,12 @@ function group_select($selname,$selclass,$preselected = false) { if(count($r)) { foreach($r as $rr) { - if((is_array($preselected)) && in_array($rr['name'], $preselected)) + if((is_array($preselected)) && in_array($rr['id'], $preselected)) $selected = " selected=\"selected\" "; else $selected = ''; - $o .= "<option value=\"{$rr['name']}\" $selected >{$rr['name']}</option>\r\n"; + $o .= "<option value=\"{$rr['id']}\" $selected >{$rr['name']}</option>\r\n"; } } |