? sites/pgsql.drupal.cvs
? sites/all/modules
? sites/default/files
? sites/default/settings.php
Index: modules/system/system.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.module,v
retrieving revision 1.533
diff -u -F^f -r1.533 system.module
--- modules/system/system.module	25 Sep 2007 11:49:37 -0000	1.533
+++ modules/system/system.module	26 Sep 2007 20:36:48 -0000
@@ -517,7 +517,7 @@ function system_admin_menu_block($item) 
 
 function system_admin_theme_submit($form, &$form_state) {
   // If we're changing themes, make sure the theme has its blocks initialized.
-  if ($form_state['values']['admin_theme'] != variable_get('admin_theme', '0')) {
+  if ($form_state['values']['admin_theme'] && $form_state['values']['admin_theme'] != variable_get('admin_theme', '0')) {
     $result = db_result(db_query("SELECT COUNT(*) FROM {blocks} WHERE theme = '%s'", $form_state['values']['admin_theme']));
     if (!$result) {
       system_initialize_theme_blocks($form_state['values']['admin_theme']);
