preferences: set themes dropdown to default if selected theme is missing
This commit is contained in:
parent
7d9aac9afa
commit
22387de225
|
@ -570,6 +570,8 @@ class Pref_Prefs extends Handler_Protected {
|
|||
$themes = array_filter($themes, "theme_valid");
|
||||
asort($themes);
|
||||
|
||||
if (!theme_valid($value)) $value = "default.php";
|
||||
|
||||
print_select($pref_name, $value, $themes,
|
||||
'dojoType="dijit.form.Select"');
|
||||
|
||||
|
|
Loading…
Reference in New Issue