summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/common.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 51aefac5f..9275125d6 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -3140,7 +3140,7 @@ function drupal_write_record($table, &$object, $update = array()) {
if ($info['type'] == 'serial') {
$serials[] = $field;
// Ignore values for serials when inserting data. Unsupported.
- $object->$field = 'NULL';
+ unset($object->$field);
}
// Build arrays for the fields, placeholders, and values in our query.