--- modules/system/system.install	2009-02-25 08:02:46.000000000 -0600
+++ modules/system/system-new.install	2009-04-18 17:44:06.000000000 -0500
@@ -2548,6 +2548,18 @@ function system_update_6049() {
 }
 
 /**
+ * Ensure blocks have their title field initialized for all enabled themes.
+ */
+function system_update_6050() {
+  $ret = array();
+  $result = db_query("SELECT module, delta, title FROM {blocks} WHERE title <> '' GROUP BY module, delta, title");
+  while ($block = db_fetch_object($result)) {
+    $ret[] = update_sql("UPDATE {blocks} SET title = '$block->title' WHERE module = '$block->module' AND delta = '$block->delta'");
+  }
+  return $ret;
+}
+
+/**
  * @} End of "defgroup updates-5.x-to-6.x"
  * The next series of updates should start at 7000.
  */
--- modules/system/system.module	2009-02-25 15:02:37.000000000 -0600
+++ modules/system/system-new.module	2009-04-18 17:54:20.000000000 -0500
@@ -1004,8 +1004,8 @@ function system_initialize_theme_blocks(
       if (!array_key_exists($block['region'], $regions)) {
         $block['region'] = system_default_region($theme);
       }
-      db_query("INSERT INTO {blocks} (module, delta, theme, status, weight, region, visibility, pages, custom, throttle, cache) VALUES ('%s', '%s', '%s', %d, %d, '%s', %d, '%s', %d, %d, %d)",
-          $block['module'], $block['delta'], $theme, $block['status'], $block['weight'], $block['region'], $block['visibility'], $block['pages'], $block['custom'], $block['throttle'], $block['cache']);
+      db_query("INSERT INTO {blocks} (module, delta, theme, status, weight, region, visibility, pages, custom, throttle, cache, title) VALUES ('%s', '%s', '%s', %d, %d, '%s', %d, '%s', %d, %d, %d, '%s')",
+          $block['module'], $block['delta'], $theme, $block['status'], $block['weight'], $block['region'], $block['visibility'], $block['pages'], $block['custom'], $block['throttle'], $block['cache'], $block['title']);
     }
   }
 }
