Index: includes/common.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/common.inc,v retrieving revision 1.1275 diff -u -p -r1.1275 common.inc --- includes/common.inc 15 Dec 2010 04:21:39 -0000 1.1275 +++ includes/common.inc 15 Dec 2010 04:43:21 -0000 @@ -6690,7 +6690,7 @@ function drupal_write_record($table, &$r // Go through the schema to determine fields to write. foreach ($schema['fields'] as $field => $info) { - if ($info['type'] == 'serial') { + if (isset($info['type']) && $info['type'] == 'serial') { // Skip serial types if we are updating. if (!empty($primary_keys)) { continue; @@ -6727,10 +6727,10 @@ function drupal_write_record($table, &$r // into an integer column, but PostgreSQL PDO does not. Also type cast NULL // when the column does not allow this. if (isset($object->$field) || !empty($info['not null'])) { - if ($info['type'] == 'int' || $info['type'] == 'serial') { + if (isset($info['type']) && ($info['type'] == 'int' || $info['type'] == 'serial')) { $fields[$field] = (int) $fields[$field]; } - elseif ($info['type'] == 'float') { + elseif (isset($info['type']) && ($info['type'] == 'float')) { $fields[$field] = (float) $fields[$field]; } else {