From: Andrew Dolgov Date: Thu, 26 Jan 2017 19:37:22 +0000 (+0300) Subject: preferences: set themes dropdown to default if selected theme is missing X-Git-Tag: 17.4~69 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=22387de225d403eea25377c7dfc43971407c0f76;hp=7d9aac9afa4fbee2ebb52d77b1b800aa916a593f;p=tt-rss.git preferences: set themes dropdown to default if selected theme is missing --- diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index bf4d6e42..18ffcc72 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -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"');