diff options
author | Pellaeon Lin <nfsmwlin@gmail.com> | 2015-07-12 06:21:19 +0300 |
---|---|---|
committer | Pellaeon Lin <nfsmwlin@gmail.com> | 2015-07-12 06:21:19 +0300 |
commit | bfaece7076d4eec4058c0ac7baa05aceecae2db0 (patch) | |
tree | 00d188355d121930e5d4a27d6760a558807689fa /templates/admin.php | |
parent | 5a6b2a27174819ba96257c92a26736191c290b8a (diff) |
Fix# show selected in admin section
Diffstat (limited to 'templates/admin.php')
-rw-r--r-- | templates/admin.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/admin.php b/templates/admin.php index 645e312..6664c01 100644 --- a/templates/admin.php +++ b/templates/admin.php @@ -6,10 +6,11 @@ script('registration', 'settings'); <p> <label for="registered_user_group"><?php p($l->t('Default group that all registered users belong')); ?></label> <select id="registered_user_group" name="registered_user_group"> - <option value="none"><?php p($l->t('None')); ?></option> + <option value="none" <?php echo $_['current'] === 'none' ? 'selected="selected"' : ''; ?>><?php p($l->t('None')); ?></option> <?php foreach ( $_['groups'] as $group ) { - echo '<option value="'.$group.'">'.$group.'</option>'; + $selected = $_['current'] === $group ? 'selected="selected"' : ''; + echo '<option value="'.$group.'" '.$selected.'>'.$group.'</option>'; } ?> </select> |