Index: includes/theme.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/theme.inc,v retrieving revision 1.213 diff -u -F^f -r1.213 theme.inc --- includes/theme.inc 21 Aug 2004 16:21:56 -0000 1.213 +++ includes/theme.inc 22 Aug 2004 01:56:10 -0000 @@ -43,7 +43,7 @@ function init_theme() { // Allow modules to override the present theme... only select custom theme // if it is available in the list of enabled themes. - $theme = $custom_theme && $themes[$custom_theme]->status ? $custom_theme : $theme; + $theme = $custom_theme && $themes[$custom_theme] ? $custom_theme : $theme; // Store the identifier for retrieving theme settings with. $theme_key = $theme; Index: modules/system.module =================================================================== RCS file: /cvs/drupal/drupal/modules/system.module,v retrieving revision 1.167 diff -u -F^f -r1.167 system.module --- modules/system.module 21 Aug 2004 10:16:13 -0000 1.167 +++ modules/system.module 22 Aug 2004 01:56:11 -0000 @@ -113,7 +113,16 @@ function system_menu() { */ function system_user($type, $edit, &$user, $category = NULL) { if ($type == 'form' && $category == 'account') { - if (count($themes = list_themes()) > 1) { + $allthemes = list_themes(); + + // list only active themes + foreach ($allthemes as $key => $theme) { + if ($theme->status) { + $themes[$key] = $theme; + } + } + + if (count($themes) > 1) { $rows = array(); foreach ($themes as $key => $value) { $row = array();