Index: includes/file.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/file.inc,v
retrieving revision 1.90
diff -u -p -r1.90 file.inc
--- includes/file.inc	5 Jan 2007 05:32:22 -0000	1.90
+++ includes/file.inc	25 Jan 2007 17:31:20 -0000
@@ -193,7 +193,7 @@ function file_check_upload($source = 'up
   }
 
   // If a file was uploaded, process it.
-  if ($_FILES["files"]["name"][$source] && is_uploaded_file($_FILES["files"]["tmp_name"][$source])) {
+  if (isset($_FILES["files"]["name"][$source]) && is_uploaded_file($_FILES["files"]["tmp_name"][$source])) {
 
     // Check for file upload errors and return FALSE if a
     // lower level system error occurred.
@@ -253,7 +253,7 @@ function file_check_upload($source = 'up
 
   else {
     // In case of previews return previous file object.
-    if (file_exists($_SESSION['file_uploads'][$source]->filepath)) {
+    if (isset($_SESSION['file_uploads'][$source]->filepath) && file_exists($_SESSION['file_uploads'][$source]->filepath)) {
       return $_SESSION['file_uploads'][$source];
     }
   }
Index: includes/menu.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/menu.inc,v
retrieving revision 1.147
diff -u -p -r1.147 menu.inc
--- includes/menu.inc	24 Jan 2007 14:48:35 -0000	1.147
+++ includes/menu.inc	25 Jan 2007 17:31:23 -0000
@@ -367,7 +367,7 @@ function _menu_tree($result = NULL, $dep
       break;
     }
   }
-  if ($link['link']) {
+  if (isset($link['link'])) {
     $tree .= theme('menu_link', $link);
   }
   return array($remnant, $tree);
Index: includes/module.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/module.inc,v
retrieving revision 1.94
diff -u -p -r1.94 module.inc
--- includes/module.inc	24 Jan 2007 14:48:35 -0000	1.94
+++ includes/module.inc	25 Jan 2007 17:31:23 -0000
@@ -110,6 +110,9 @@ function module_rebuild_cache() {
       continue;
     }
     $files[$filename]->info = $file->info;
+    if (!isset($files[$filename]->info['version'])) {
+      $files[$filename]->info['version'] = NULL;
+    }
 
     // log the critical hooks implemented by this module
     $bootstrap = 0;
Index: modules/block/block.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/block/block.module,v
retrieving revision 1.248
diff -u -p -r1.248 block.module
--- modules/block/block.module	24 Jan 2007 14:48:36 -0000	1.248
+++ modules/block/block.module	25 Jan 2007 17:31:25 -0000
@@ -631,7 +631,7 @@ function block_user($type, $edit, &$user
 
       break;
     case 'validate':
-      if (!$edit['block']) {
+      if (!isset($edit['block'])) {
         $edit['block'] = array();
       }
       return $edit;
Index: modules/system/system.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.module,v
retrieving revision 1.443
diff -u -p -r1.443 system.module
--- modules/system/system.module	24 Jan 2007 14:48:36 -0000	1.443
+++ modules/system/system.module	25 Jan 2007 17:31:29 -0000
@@ -354,7 +354,10 @@ function system_main_admin_page($arg = N
   usort($menu['children'], '_menu_sort');
   foreach ($menu['children'] as $mid) {
     $block = menu_get_item($mid);
-    if ($block['block callback'] && function_exists($block['block callback'])) {
+    if (!isset($block['content'])) {
+      $block['content'] = '';
+    }
+    if (isset($block['block callback']) && function_exists($block['block callback'])) {
       $arguments = isset($block['block arguments']) ? $block['block arguments'] : array();
       $block['content'] .= call_user_func_array($block['block callback'], $arguments);
     }
@@ -371,7 +374,7 @@ function system_main_admin_page($arg = N
 function system_admin_menu_block($block) {
   return 'This page awaits rewrite'; // TODO: this needs to be rewritten for the new menu system.
   $content = array();
-  if (is_array($block['children'])) {
+  if (isset($block['children']) && is_array($block['children'])) {
     usort($block['children'], '_menu_sort');
     foreach ($block['children'] as $mid) {
       $item = menu_get_item($mid);
@@ -949,7 +952,7 @@ function system_theme_data() {
       $style->template = isset($theme->template) ? $theme->template : FALSE;
       $style->name = basename(dirname($style->filename));
       $style->owner = $theme->filename;
-      $style->prefix = $theme->template ? $theme->prefix : $theme->name;
+      $style->prefix = isset($theme->template) ? $theme->prefix : $theme->name;
       // do not double-insert styles with theme files in their directory
       if (array_key_exists($style->name, $themes)) {
         continue;
@@ -1160,7 +1163,7 @@ function system_themes() {
 function theme_system_themes($form) {
   foreach (element_children($form) as $key) {
     $row = array();
-    if (is_array($form[$key]['description'])) {
+    if (isset($form[$key]['description']) && is_array($form[$key]['description'])) {
       $row[] = drupal_render($form[$key]['screenshot']);
       $row[] = drupal_render($form[$key]['description']);
       $row[] = array('data' => drupal_render($form['status'][$key]), 'align' => 'center');
@@ -1234,6 +1237,9 @@ function system_modules($form_values = N
     return $confirm_form;
   }
 
+  // Modules to throttle.
+  $throttle = array();
+
   // Store module list for validation callback.
   $form['validation_modules'] = array('#type' => 'value', '#value' => $files);
 
@@ -1286,7 +1292,7 @@ function system_modules($form_values = N
 
     // Mark dependents disabled so user can not remove modules being depended on.
     $dependents = array();
-    if (is_array($file->info['dependents'])) {
+    if (isset($file->info['dependents']) && is_array($file->info['dependents'])) {
       foreach ($file->info['dependents'] as $dependent) {
         if ($files[$dependent]->status == 1) {
           $dependents[] = $files[$dependent]->info['name'] . t(' (<span class="admin-enabled">enabled</span>)');
@@ -1483,7 +1489,7 @@ function system_modules_submit($form_id,
 
   $current_module_list = module_list(TRUE, FALSE);
 
-  if (is_array($form_values['throttle'])) {
+  if (isset($form_values['throttle']) && is_array($form_values['throttle'])) {
     foreach ($form_values['throttle'] as $key => $choice) {
       db_query("UPDATE {system} SET throttle = %d WHERE type = 'module' and name = '%s'", $choice ? 1 : 0, $key);
     }
@@ -1835,7 +1841,7 @@ function system_status($check = FALSE) {
  * Helper function to sort requirements.
  */
 function _system_sort_requirements($a, $b) {
-  return (isset($a['weight']) || isset($b['weight'])) ? $a['weight'] - $b['weight'] : strcmp($a['title'], $b['title']);
+  return (isset($a['weight']) && isset($b['weight'])) ? $a['weight'] - $b['weight'] : strcmp($a['title'], $b['title']);
 }
 
 /**
@@ -2168,7 +2174,7 @@ function system_admin_compact_mode() {
  */
 function theme_admin_page($blocks) {
   $stripe = 0;
-  $container = array();
+  $container = array('left' => '', 'right' => '');
 
   foreach ($blocks as $block) {
     if ($block_output = theme('admin_block', $block)) {
@@ -2323,7 +2329,7 @@ function system_get_module_admin_tasks($
 function theme_system_admin_by_module($menu_items) {
   $stripe = 0;
   $output = '';
-  $container = array();
+  $container = array('left' => '', 'right' => '');
 
   // Iterate over all modules
   foreach ($menu_items as $module => $block) {
@@ -2337,7 +2343,7 @@ function theme_system_admin_by_module($m
       $block['description'] = t($description);
 
       if ($block_output = theme('admin_block', $block)) {
-        if (!$block['position']) {
+        if (!isset($block['position'])) {
           // Perform automatic striping.
           $block['position'] = ++$stripe % 2 ? 'left' : 'right';
         }
Index: modules/user/user.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/user/user.module,v
retrieving revision 1.746
diff -u -p -r1.746 user.module
--- modules/user/user.module	24 Jan 2007 14:48:36 -0000	1.746
+++ modules/user/user.module	25 Jan 2007 17:31:31 -0000
@@ -1275,12 +1275,9 @@ function user_register() {
 
   // Remove form_group around default fields if there are no other groups.
   if (!$extra) {
-    $form['name'] = $form['account']['name'];
-    $form['mail'] = $form['account']['mail'];
-    $form['pass'] = $form['account']['pass'];
-    $form['status'] = $form['account']['status'];
-    $form['roles'] = $form['account']['roles'];
-    $form['notify'] = $form['account']['notify'];
+    foreach ($form['account'] as $key => $value) {
+      $form[$key] = $value;
+    }
     unset($form['account']);
   }
   else {
