Skip to content

Commit c85e69b

Browse files
author
Kristan Kenney
committed
Fix theme selection
1 parent 11cd539 commit c85e69b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

web/templates/admin/edit_user.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@
199199
if ((!empty($_SESSION['userTheme'])) && ( $value == $v_user_theme )) {
200200
echo ' selected' ;
201201
}
202+
if ((empty($v_user_theme) && (!empty($_SESSION['THEME']))) && ( $value == $_SESSION['THEME'] )) {
203+
echo ' selected' ;
204+
}
202205
if ((!empty($_SESSION['userTheme'])) && ( $value == $_POST['v_user_theme'])){
203206
echo ' selected' ;
204207
}
@@ -217,8 +220,8 @@
217220
<tr>
218221
<td>
219222
<select class="vst-list" name="v_sort_order">
220-
<option value='date'><?php print _('Date'); ?></option>
221-
<option value='name' <?php if($data[$user]['PREF_UI_SORT'] !== 'date') echo 'selected' ?>><?php print _('Name'); ?></option>
223+
<option value='date' <?php if($data[$user]['PREF_UI_SORT'] === '') echo 'selected' ?>><?php print _('Date'); ?></option>
224+
<option value='name' <?php if($data[$user]['PREF_UI_SORT'] === 'name') echo 'selected' ?>><?php print _('Name'); ?></option>
222225
</select>
223226
</td>
224227
</tr>

0 commit comments

Comments
 (0)