diff options
-rw-r--r-- | database/updates.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/database/updates.inc b/database/updates.inc index c7192509e..095176103 100644 --- a/database/updates.inc +++ b/database/updates.inc @@ -667,6 +667,13 @@ function system_update_144() { function system_update_145() { $default_theme = variable_get('theme_default', 'bluemarine'); + + $themes = list_themes(); + if (!array_key_exists($default_theme, $themes)) { + variable_set('theme_default', 'bluemarine'); + $default_theme = 'bluemarine'; + } + $ret = array(); switch ($GLOBALS['db_type']) { |