Commit 471a04a2 authored by Dries's avatar Dries

- Patch #840182 by chx: testing is broken.

parent b6c0d1ab
......@@ -96,7 +96,7 @@ public function nextId($existing_id = 0) {
$new_id = $this->query('INSERT INTO {sequences} () VALUES ()', array(), array('return' => Database::RETURN_INSERT_ID));
}
if (!$this->shutdownRegistered) {
register_shutdown_function(array($this, 'nextIdDelete'));
drupal_register_shutdown_function(array($this, 'nextIdDelete'));
$shutdownRegistered = TRUE;
}
return $new_id;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment