? check.patch
Index: dba.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/dba/dba.module,v
retrieving revision 1.60
diff -u -p -r1.60 dba.module
--- dba.module	20 Feb 2008 01:00:11 -0000	1.60
+++ dba.module	7 Dec 2008 10:39:51 -0000
@@ -424,7 +424,7 @@ function dba_admin_tables_describe() {
  * MySQL only: check the selected table(s).
  */
 function dba_admin_tables_check() {
-  return drupal_get_form('dba_check_tables');
+  return drupal_get_form('dba_check_tables_form');
 }
 
 /**
@@ -963,20 +963,19 @@ function dba_check_tables_form() {
   // We don't want to get redirected, which would run the queries twice.
   $form['#redirect'] = false;
 
-  return drupal_get_form('dba_check_tables', $form);
+  return $form;
 }
 
 function dba_check_table_form_pre_render($form_id, &$form) {
-  global $form_values;
   if (form_get_errors()) {
     // If there's a validation error (e.g. #token is wrong), return
-    // immediately since we can't trust $form_values.
+    // immediately since we can't trust $form.
     return;
   }
 
   $action = isset($_POST['op']) ? $_POST['op'] : 'check';
-  $type = $form_values['check_type'];
-  $tables = explode(',', $form_values['tables']);
+  $type = $form['check_options']['check_type']['#value'];
+  $tables = explode(',', $form['check_tables']['tables']['#value']);
 
   if ($action == t('Repair')) {
     drupal_set_title(t('Performing table repair.'));
