Index: modules/color/color.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/color/color.module,v
retrieving revision 1.15
diff -u -p -r1.15 color.module
--- modules/color/color.module	20 Jan 2007 08:12:20 -0000	1.15
+++ modules/color/color.module	18 Mar 2007 01:58:45 -0000
@@ -147,7 +147,7 @@ function theme_color_scheme_form($form) 
   drupal_add_css($path . $info['preview_css']);
 
   // Wrapper
-  $output .= '<div class="color-form clear-block">';
+  $output = '<div class="color-form clear-block">';
 
   // Color schemes
   $output .= drupal_render($form['scheme']);
Index: modules/forum/forum.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/forum/forum.module,v
retrieving revision 1.387
diff -u -p -r1.387 forum.module
--- modules/forum/forum.module	17 Mar 2007 18:30:14 -0000	1.387
+++ modules/forum/forum.module	18 Mar 2007 01:58:45 -0000
@@ -443,7 +443,7 @@ function forum_form_container($edit = ar
   $form['name'] = array(
     '#title' => t('Container name'),
     '#type' => 'textfield',
-    '#default_value' => $edit['name'],
+    '#default_value' => isset($edit['name']) ? $edit['name'] : '',
     '#maxlength' => 255,
     '#description' => t('The container name is used to identify related forums.'),
     '#required' => TRUE
@@ -452,14 +452,14 @@ function forum_form_container($edit = ar
   $form['description'] = array(
     '#type' => 'textarea',
     '#title' => t('Description'),
-    '#default_value' => $edit['description'],
+    '#default_value' => isset($edit['description']) ? $edit['description'] : '',
     '#description' => t('The container description can give users more information about the forums it contains.')
   );
   $form['parent']['#tree'] = TRUE;
-  $form['parent'][0] = _forum_parent_select($edit['tid'], t('Parent'), 'container');
+  $form['parent'][0] = _forum_parent_select(isset($edit['tid']) ? $edit['tid'] : 0, t('Parent'), 'container');
   $form['weight'] = array('#type' => 'weight',
     '#title' => t('Weight'),
-    '#default_value' => $edit['weight'],
+    '#default_value' => isset($edit['weight']) ? $edit['weight'] : 0,
     '#description' => t('When listing containers, those with with light (small) weights get listed before containers with heavier (larger) weights. Containers with equal weights are sorted alphabetically.')
   );
 
@@ -469,7 +469,7 @@ function forum_form_container($edit = ar
     '#type' => 'submit',
     '#value' => t('Submit')
   );
-  if ($edit['tid']) {
+  if (isset($edit['tid'])) {
     $form['delete'] = array('#type' => 'submit', '#value' => t('Delete'));
     $form['tid'] = array('#type' => 'value', '#value' => $edit['tid']);
   }
@@ -481,7 +481,7 @@ function forum_form_container($edit = ar
 }
 
 function forum_form_main($type, $edit = array()) {
-  if ($_POST['op'] == t('Delete') || $_POST['confirm']) {
+  if ((isset($_POST['op']) && $_POST['op'] == t('Delete')) || (isset($_POST['confirm']) && $_POST['confirm'])) {
     return drupal_get_form('forum_confirm_delete', $edit['tid']);
   }
   switch ($type) {
@@ -502,27 +502,27 @@ function forum_form_main($type, $edit = 
 function forum_form_forum($edit = array()) {
   $form['name'] = array('#type' => 'textfield',
     '#title' => t('Forum name'),
-    '#default_value' => $edit['name'],
+    '#default_value' => isset($edit['name']) ? $edit['name'] : '',
     '#maxlength' => 255,
     '#description' => t('The forum name is used to identify related discussions.'),
     '#required' => TRUE,
   );
   $form['description'] = array('#type' => 'textarea',
     '#title' => t('Description'),
-    '#default_value' => $edit['description'],
+    '#default_value' => isset($edit['description']) ? $edit['description'] : '',
     '#description' => t('The forum description can give users more information about the discussion topics it contains.'),
   );
   $form['parent']['#tree'] = TRUE;
-  $form['parent'][0] = _forum_parent_select($edit['tid'], t('Parent'), 'forum');
+  $form['parent'][0] = _forum_parent_select(isset($edit['tid']) ? $edit['tid'] : 0, t('Parent'), 'forum');
   $form['weight'] = array('#type' => 'weight',
     '#title' => t('Weight'),
-    '#default_value' => $edit['weight'],
+    '#default_value' => isset($edit['weight']) ? $edit['weight'] : 0,
     '#description' => t('When listing forums, those with lighter (smaller) weights get listed before containers with heavier (larger) weights. Forums with equal weights are sorted alphabetically.'),
   );
 
   $form['vid'] = array('#type' => 'hidden', '#value' => _forum_get_vid());
   $form['submit' ] = array('#type' => 'submit', '#value' => t('Submit'));
-  if ($edit['tid']) {
+  if (isset($edit['tid'])) {
     $form['delete'] = array('#type' => 'submit', '#value' => t('Delete'));
     $form['tid'] = array('#type' => 'hidden', '#value' => $edit['tid']);
   }
Index: modules/node/content_types.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/node/content_types.inc,v
retrieving revision 1.26
diff -u -p -r1.26 content_types.inc
--- modules/node/content_types.inc	7 Mar 2007 13:08:04 -0000	1.26
+++ modules/node/content_types.inc	18 Mar 2007 01:58:45 -0000
@@ -34,9 +34,8 @@ function node_overview_types() {
         $operations[] = array('data' => '');
       }
 
-      $row = array(array('data' => l($name, 'admin/content/types/'. $type_url_str), 'class' => $class), array('data' => check_plain($type->type), 'class' => $class), array('data' => check_plain($type->description), 'class' => $class));
+      $row = array(l($name, 'admin/content/types/'. $type_url_str), check_plain($type->type), check_plain($type->description));
       foreach ($operations as $operation) {
-        $operation['class'] = $class;
         $row[] = $operation;
       }
       $rows[] = $row;
@@ -146,7 +145,7 @@ function node_type_form($type = NULL) {
   $form['submission']['help']  = array(
     '#type' => 'textarea',
     '#title' => t('Explanation or submission guidelines'),
-    '#default_value' =>  $type->help,
+    '#default_value' =>  isset($type->help) ? $type->help : '',
     '#description' => t('This text will be displayed at the top of the submission form for this content type. It is useful for helping or instructing your users.')
   );
   $form['workflow'] = array(
Index: modules/node/node.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/node/node.module,v
retrieving revision 1.791
diff -u -p -r1.791 node.module
--- modules/node/node.module	17 Mar 2007 18:30:14 -0000	1.791
+++ modules/node/node.module	18 Mar 2007 01:58:45 -0000
@@ -292,13 +292,13 @@ function node_type_save($info) {
   $is_existing = db_num_rows(db_query("SELECT * FROM {node_type} WHERE type = '%s'", $existing_type));
 
   if ($is_existing) {
-    db_query("UPDATE {node_type} SET type = '%s', name = '%s', module = '%s', has_title = %d, title_label = '%s', has_body = %d, body_label = '%s', description = '%s', help = '%s', min_word_count = %d, custom = %d, modified = %d, locked = %d WHERE type = '%s'", $info->type, $info->name, $info->module, $info->has_title, $info->title_label, $info->has_body, $info->body_label, $info->description, $info->help, $info->min_word_count, $info->custom, $info->modified, $info->locked, $existing_type);
+      db_query("UPDATE {node_type} SET type = '%s', name = '%s', module = '%s', has_title = %d, title_label = '%s', has_body = %d, body_label = '%s', description = '%s', help = '%s', min_word_count = %d, custom = %d, modified = %d, locked = %d WHERE type = '%s'", $info->type, $info->name, $info->module, $info->has_title, $info->title_label, $info->has_body, isset($info->body_label) ? $info->body_label : '', $info->description, isset($info->help) ? $info->help : '', isset($info->min_word_count) ? $info->min_word_count : 0, $info->custom, $info->modified, $info->locked, $existing_type);
 
     module_invoke_all('node_type', 'update', $info);
     return SAVED_UPDATED;
   }
   else {
-    db_query("INSERT INTO {node_type} (type, name, module, has_title, title_label, has_body, body_label, description, help, min_word_count, custom, modified, locked, orig_type) VALUES ('%s', '%s', '%s', %d, '%s', %d, '%s', '%s', '%s', %d, %d, %d, %d, '%s')", $info->type, $info->name, $info->module, $info->has_title, $info->title_label, $info->has_body, $info->body_label, $info->description, $info->help, $info->min_word_count, $info->custom, $info->modified, $info->locked, $info->orig_type);
+      db_query("INSERT INTO {node_type} (type, name, module, has_title, title_label, has_body, body_label, description, help, min_word_count, custom, modified, locked, orig_type) VALUES ('%s', '%s', '%s', %d, '%s', %d, '%s', '%s', '%s', %d, %d, %d, %d, '%s')", $info->type, $info->name, $info->module, $info->has_title, $info->title_label, $info->has_body, isset($info->body_label) ? $info->body_label : '', $info->description, isset($info->help) ? $info->help : '', isset($info->min_word_count) ? $info->min_word_count : 0, $info->custom, $info->modified, $info->locked, $info->orig_type);
 
     module_invoke_all('node_type', 'insert', $info);
     return SAVED_NEW;
@@ -579,9 +579,9 @@ function node_save(&$node) {
 
   // Split off revisions data to another structure
   $revisions_table_values = array('nid' => $node->nid, 'vid' => $node->vid,
-                     'title' => $node->title, 'body' => $node->body,
+                     'title' => $node->title, 'body' => isset($node->body) ? $node->body : '',
                      'teaser' => $node->teaser, 'timestamp' => $node->changed,
-                     'uid' => $user->uid, 'format' => $node->format);
+                     'uid' => $user->uid, 'format' => isset($node->format) ? $node->format : 0);
   $revisions_table_types = array('nid' => '%d', 'vid' => '%d',
                      'title' => "'%s'", 'body' => "'%s'",
                      'teaser' => "'%s'", 'timestamp' => '%d',
@@ -674,6 +674,10 @@ function node_view($node, $teaser = FALS
   if ($links) {
     $node->links = module_invoke_all('link', 'node', $node, !$page);
 
+    if (empty($node->links)) {
+      $node->links = array();
+    }
+    
     foreach (module_implements('link_alter') AS $module) {
       $function = $module .'_link_alter';
       $function($node, $node->links);
@@ -1523,6 +1527,7 @@ function node_admin_nodes() {
   $form['options']['submit'] = array('#type' => 'submit', '#value' => t('Update'));
 
   $destination = drupal_get_destination();
+  $nodes = array();
   while ($node = db_fetch_object($result)) {
     $nodes[$node->nid] = '';
     $form['title'][$node->nid] = array('#value' => l($node->title, 'node/'. $node->nid) .' '. theme('mark', node_mark($node->nid, $node->changed)));
@@ -1917,6 +1922,13 @@ function node_object_prepare(&$node) {
   }
   node_invoke($node, 'prepare');
   node_invoke_nodeapi($node, 'prepare');
+
+  if (!isset($node->title)) {
+    $node->title = '';
+  }
+  if (!isset($node->body)) {
+    $node->body = '';
+  }
 }
 
 /**
@@ -2924,6 +2936,7 @@ function node_content_form($node) {
   $form = array();
 
   if ($type->has_title) {
+    $node->title = isset($node->title) ? $node->title : '';
     $form['title'] = array(
       '#type' => 'textfield',
       '#title' => check_plain($type->title_label),
@@ -2934,6 +2947,7 @@ function node_content_form($node) {
   }
 
   if ($type->has_body) {
+    $node->body = isset($node->body) ? $node->body : '';
     $form['body_filter']['body'] = array(
       '#type' => 'textarea',
       '#title' => check_plain($type->body_label),
@@ -2942,6 +2956,14 @@ function node_content_form($node) {
       '#required' => ($type->min_word_count > 0));
     $form['body_filter']['format'] = filter_form($node->format);
   }
+  else {
+    $form['body_filter']['body'] = array(
+      '#type' => 'value',
+      '#value' => '');
+    $form['body_filter']['format'] = array(
+      '#type' => 'value',
+      '#value' => 0);    
+  }
 
   return $form;
 }
Index: modules/poll/poll.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/poll/poll.module,v
retrieving revision 1.224
diff -u -p -r1.224 poll.module
--- modules/poll/poll.module	11 Feb 2007 09:30:51 -0000	1.224
+++ modules/poll/poll.module	18 Mar 2007 01:58:46 -0000
@@ -112,6 +112,18 @@ function poll_validate($node) {
   }
 }
 
+
+/**
+ * Implementation of hook_prepare().
+ */
+function poll_prepare(&$node) {
+  if (empty($node->choice)) {
+    $node->choice = array();
+  }
+  if (empty($node->runtime)) {
+    $node->runtime = 0;
+  }
+}
 /**
  * Implementation of hook_form().
  */
@@ -166,14 +178,14 @@ function poll_form($node, $form_values =
     $form['choice'][$a]['chtext'] = array(
       '#type' => 'textfield',
       '#title' => t('Choice @n', array('@n' => ($a + 1))),
-      '#default_value' => $node->choice[$a]['chtext'],
+      '#default_value' => isset($node->choice[$a]['chtext']) ? $node->choice[$a]['chtext'] : '',
     );
 
     if ($admin) {
       $form['choice'][$a]['chvotes'] = array(
         '#type' => 'textfield',
         '#title' => t('Votes for choice @n', array('@n' => ($a + 1))),
-        '#default_value' => (int)$node->choice[$a]['chvotes'],
+        '#default_value' => isset($node->choice[$a]['chvotes']) ? (int)$node->choice[$a]['chvotes'] : 0,
         '#size' => 5, '#maxlength' => 7
       );
     }
@@ -217,6 +229,7 @@ function poll_insert($node) {
 
   db_query("INSERT INTO {poll} (nid, runtime, active) VALUES (%d, %d, %d)", $node->nid, $node->runtime, $node->active);
 
+  $i = 0;
   foreach ($node->choice as $choice) {
     if ($choice['chtext'] != '') {
       db_query("INSERT INTO {poll_choices} (nid, chtext, chvotes, chorder) VALUES (%d, '%s', %d, %d)", $node->nid, $choice['chtext'], $choice['chvotes'], $i++);
@@ -378,7 +391,7 @@ function poll_view_voting($node, $block)
  * Themes the voting form for a poll.
  */
 function theme_poll_view_voting($form) {
-  $output .= '<div class="poll">';
+  $output = '<div class="poll">';
   $output .= '  <div class="vote-form">';
   $output .= '    <div class="choices">';
   $output .= drupal_render($form['choice']);
@@ -396,25 +409,27 @@ function theme_poll_view_voting($form) {
  */
 function poll_view_results(&$node, $teaser, $page, $block) {
   // Count the votes and find the maximum
+  $total_votes = $max_votes = 0;
   foreach ($node->choice as $choice) {
     $total_votes += $choice['chvotes'];
     $max_votes = max($max_votes, $choice['chvotes']);
   }
 
+  $poll_results = '';
   foreach ($node->choice as $i => $choice) {
     if ($choice['chtext'] != '') {
       $poll_results .= theme('poll_bar', check_plain($choice['chtext']), round($choice['chvotes'] * 100 / max($total_votes, 1)), format_plural($choice['chvotes'], '1 vote', '@count votes'), $block);
     }
   }
 
-  $output .= theme('poll_results', check_plain($node->title), $poll_results, $total_votes, $node->links, $block, $node->nid, $node->vote);
+  $output = theme('poll_results', check_plain($node->title), $poll_results, $total_votes, $node->links, $block, $node->nid, $node->vote);
 
   return $output;
 }
 
 function theme_poll_results($title, $results, $votes, $links, $block, $nid, $vote) {
   if ($block) {
-    $output .= '<div class="poll">';
+    $output = '<div class="poll">';
     $output .= '<div class="title">'. $title .'</div>';
     $output .= $results;
     $output .= '<div class="total">'. t('Total votes: %votes', array('%votes' => $votes)) .'</div>';
@@ -422,7 +437,7 @@ function theme_poll_results($title, $res
     $output .= '<div class="links">'. theme('links', $links) .'</div>';
   }
   else {
-    $output .= '<div class="poll">';
+    $output = '<div class="poll">';
     $output .= $results;
     $output .= '<div class="total">'. t('Total votes: %votes', array('%votes' => $votes)) .'</div>';
     if (isset($vote) && $vote > -1 && user_access('cancel own vote')) {
@@ -505,7 +520,6 @@ function poll_vote(&$node) {
   if ($node = node_load($nid)) {
     $edit = $_POST;
     $choice = $edit['choice'];
-    $vote = $_POST['vote'];
 
     if (isset($choice) && isset($node->choice[$choice])) {
       if ($node->allowvotes) {
@@ -598,7 +612,7 @@ function poll_view($node, $teaser = FALS
   }
 
   if ($node->allowvotes && ($block || arg(2) != 'results')) {
-    if ($_POST['op'] == t('Vote')) {
+    if (isset($_POST['op']) && $_POST['op'] == t('Vote')) {
       poll_vote($node);
     }
     $node->content['body'] = array(
Index: modules/profile/profile.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/profile/profile.module,v
retrieving revision 1.194
diff -u -p -r1.194 profile.module
--- modules/profile/profile.module	11 Feb 2007 09:30:51 -0000	1.194
+++ modules/profile/profile.module	18 Mar 2007 01:58:46 -0000
@@ -230,14 +230,14 @@ function profile_field_form($arg = NULL)
   );
   $form['fields']['category'] = array('#type' => 'textfield',
     '#title' => t('Category'),
-    '#default_value' => $edit['category'],
+    '#default_value' => isset($edit['category']) ? $edit['category'] : '',
     '#autocomplete_path' => 'admin/user/profile/autocomplete',
     '#description' => t('The category the new field should be part of. Categories are used to group fields logically. An example category is "Personal information".'),
     '#required' => TRUE,
   );
   $form['fields']['title'] = array('#type' => 'textfield',
     '#title' => t('Title'),
-    '#default_value' => $edit['title'],
+    '#default_value' => isset($edit['title']) ? $edit['title'] : '',
     '#description' => t('The title of the new field. The title will be shown to the user. An example title is "Favorite color".'),
     '#required' => TRUE,
   );
@@ -250,19 +250,19 @@ Unless you know what you are doing, it i
   );
   $form['fields']['explanation'] = array('#type' => 'textarea',
     '#title' => t('Explanation'),
-    '#default_value' => $edit['explanation'],
+    '#default_value' => isset($edit['explanation']) ? $edit['explanation'] : '',
     '#description' => t('An optional explanation to go with the new field. The explanation will be shown to the user.'),
   );
   if ($type == 'selection') {
     $form['fields']['options'] = array('#type' => 'textarea',
       '#title' => t('Selection options'),
-      '#default_value' => $edit['options'],
+      '#default_value' => isset($edit['options']) ? $edit['options'] : '',
       '#description' => t('A list of all options. Put each option on a separate line. Example options are "red", "blue", "green", etc.'),
     );
   }
   $form['fields']['weight'] = array('#type' => 'weight',
     '#title' => t('Weight'),
-    '#default_value' => $edit['weight'],
+    '#default_value' => isset($edit['weight']) ? $edit['weight'] : 0,
     '#delta' => 5,
     '#description' => t('The weights define the order in which the form fields are shown. Lighter fields "float up" towards the top of the category.'),
   );
@@ -274,28 +274,28 @@ Unless you know what you are doing, it i
   if ($type == 'selection' || $type == 'list' || $type == 'textfield') {
     $form['fields']['page'] = array('#type' => 'textfield',
       '#title' => t('Page title'),
-      '#default_value' => $edit['page'],
+      '#default_value' => isset($edit['page']) ? $edit['page'] : '',
       '#description' => t('To enable browsing this field by value, enter a title for the resulting page. The word <code>%value</code> will be substituted with the corresponding value. An example page title is "People whose favorite color is %value". This is only applicable for a public field.'),
     );
   }
   else if ($type == 'checkbox') {
     $form['fields']['page'] = array('#type' => 'textfield',
       '#title' => t('Page title'),
-      '#default_value' => $edit['page'],
+      '#default_value' => isset($edit['page']) ? $edit['page'] : '',
       '#description' => t('To enable browsing this field by value, enter a title for the resulting page. An example page title is "People who are employed". This is only applicable for a public field.'),
     );
   }
   $form['fields']['autocomplete'] = array('#type' => 'checkbox',
     '#title' => t('Form will auto-complete while user is typing.'),
-    '#default_value' => $edit['autocomplete'],
+    '#default_value' => isset($edit['autocomplete']) ? $edit['autocomplete'] : 0,
   );
   $form['fields']['required'] = array('#type' => 'checkbox',
     '#title' => t('The user must enter a value.'),
-    '#default_value' => $edit['required'],
+    '#default_value' => isset($edit['required']) ? $edit['required'] : 0,
   );
   $form['fields']['register'] = array('#type' => 'checkbox',
     '#title' => t('Visible in user registration form.'),
-    '#default_value' => $edit['register'],
+    '#default_value' => isset($edit['register']) ? $edit['register'] : 0,
   );
   $form['submit'] = array('#type' => 'submit',
     '#value' => t('Save field'),
Index: modules/system/system.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.install,v
retrieving revision 1.84
diff -u -p -r1.84 system.install
--- modules/system/system.install	16 Mar 2007 04:55:07 -0000	1.84
+++ modules/system/system.install	18 Mar 2007 01:58:46 -0000
@@ -92,6 +92,7 @@ function system_requirements($phase) {
 
     if (is_numeric($cron_last)) {
       $requirements['cron']['value'] = $t('Last run !time ago', array('!time' => format_interval(time() - $cron_last)));
+      $requirements['cron']['description'] = '';
     }
     else {
       $requirements['cron'] = array(
Index: modules/system/system.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.module,v
retrieving revision 1.457
diff -u -p -r1.457 system.module
--- modules/system/system.module	17 Mar 2007 18:30:14 -0000	1.457
+++ modules/system/system.module	18 Mar 2007 01:58:47 -0000
@@ -1498,7 +1498,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);
     }
@@ -1853,7 +1853,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']);
 }
 
 /**
@@ -2191,7 +2191,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)) {
Index: modules/upload/upload.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/upload/upload.module,v
retrieving revision 1.154
diff -u -p -r1.154 upload.module
--- modules/upload/upload.module	6 Mar 2007 16:43:10 -0000	1.154
+++ modules/upload/upload.module	18 Mar 2007 01:58:47 -0000
@@ -344,7 +344,7 @@ function upload_form_alter($form_id, &$f
   }
 
   if (isset($form['type'])) {
-    $node = $form['#node'];
+    $node = isset($form['#node']) ? $form['#node'] : new StdClass();
     if ($form['type']['#value'] .'_node_form' == $form_id && variable_get("upload_$node->type", TRUE)) {
       drupal_add_js('misc/progress.js');
       drupal_add_js('misc/upload.js');
Index: modules/user/user.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/user/user.module,v
retrieving revision 1.759
diff -u -p -r1.759 user.module
--- modules/user/user.module	17 Mar 2007 18:30:14 -0000	1.759
+++ modules/user/user.module	18 Mar 2007 01:58:47 -0000
@@ -1835,9 +1835,8 @@ function user_admin_access() {
   if (empty($rows)) {
     $rows[] = array(array('data' => '<em>'. t('There are currently no access rules.') .'</em>', 'colspan' => 5));
   }
-  $output .= theme('table', $header, $rows);
 
-  return $output;
+  return theme('table', $header, $rows);
 }
 
 /**
@@ -2662,6 +2661,7 @@ function user_filter_form() {
 
   $form['filters']['filter'] = array('#type' => 'radios',
                                  '#options' => $names,
+                                 '#default_value' => 'status'
                                );
   $form['filters']['buttons']['submit'] = array('#type' => 'submit',
                                             '#value' => (count($session) ? t('Refine') : t('Filter'))
@@ -2700,7 +2700,7 @@ function theme_user_filters($form) {
     }
   }
 
-  $output .= '<li><dl class="multiselect">'. (sizeof($form['current']) ? '<dt><em>'. t('and') .'</em> '. t('where') .'</dt>' : '') .'<dd class="a">';
+  $output .= '<li><dl class="multiselect">'. (isset($form['current']) ? '<dt><em>'. t('and') .'</em> '. t('where') .'</dt>' : '') .'<dd class="a">';
   foreach (element_children($form['filter']) as $key) {
     $output .= drupal_render($form['filter'][$key]);
   }
Index: modules/watchdog/watchdog.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/watchdog/watchdog.module,v
retrieving revision 1.171
diff -u -p -r1.171 watchdog.module
--- modules/watchdog/watchdog.module	27 Feb 2007 12:29:22 -0000	1.171
+++ modules/watchdog/watchdog.module	18 Mar 2007 01:58:47 -0000
@@ -151,7 +151,7 @@ function watchdog_overview() {
     );
   }
 
-  if (!$rows) {
+  if (!isset($rows)) {
     $rows[] = array(array('data' => t('No log messages available.'), 'colspan' => 6));
   }
 
Index: includes/install.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/install.inc,v
retrieving revision 1.34
diff -u -p -r1.34 install.inc
--- includes/install.inc	11 Feb 2007 08:48:36 -0000	1.34
+++ includes/install.inc	18 Mar 2007 01:58:47 -0000
@@ -68,7 +68,7 @@ function drupal_get_installed_schema_ver
     $versions = array();
   }
 
-  if (!$versions) {
+  if (!isset($versions)) {
     $versions = array();
     $result = db_query("SELECT name, schema_version FROM {system} WHERE type = 'module'");
     while ($row = db_fetch_object($result)) {
Index: includes/theme.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/theme.inc,v
retrieving revision 1.343
diff -u -p -r1.343 theme.inc
--- includes/theme.inc	2 Mar 2007 09:40:13 -0000	1.343
+++ includes/theme.inc	18 Mar 2007 01:58:48 -0000
@@ -810,6 +810,9 @@ function theme_table($header, $rows, $at
     }
     $output .= " </tr></thead>\n";
   }
+  else {
+    $ts = array();
+  }
 
   // Format the table rows:
   $output .= "<tbody>\n";
