? no_crap_in_variables_table.patch
? no_crap_in_variables_table_1.patch
? database/database.prefixed.mysql
Index: modules/system.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/system.module,v
retrieving revision 1.283
diff -u -F^f -r1.283 system.module
--- modules/system.module	24 Jan 2006 18:27:29 -0000	1.283
+++ modules/system.module	27 Jan 2006 22:36:47 -0000
@@ -767,15 +767,19 @@ function system_theme_settings_submit($f
 function system_settings_form_submit($form_id, $values) {
   $op = isset($_POST['op']) ? $_POST['op'] : '';
 
+  // don't save these names to the variables table. they are used by form api
+  $system_exclude = array('submit', 'reset', 'array_filter', 'type', 'form_id');
   foreach ($values as $key => $value) {
-    if ($op == t('Reset to defaults')) {
-      variable_del($key);
-    }
-    else {
-      if (is_array($value) && isset($values['array_filter'])) {
-        $value = array_keys(array_filter($value));
+    if (!in_array($key, $system_exclude)) {
+      if ($op == t('Reset to defaults')) {
+        variable_del($key);
+      }
+      else {
+        if (is_array($value) && isset($values['array_filter'])) {
+          $value = array_keys(array_filter($value));
+        }
+        variable_set($key, $value);
       }
-      variable_set($key, $value);
     }
   }
   if ($op == t('Reset to defaults')) {
