diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-18 06:56:24 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-18 06:56:24 +0000 |
commit | 3dddaa3e6ff47b52df5836a49272952893208ddc (patch) | |
tree | 2f3f069774f2f2091a0a169c6210fc356e2d057a /includes/actions.inc | |
parent | 1650fea5d949b576bcc779d6315250da0ba7ec82 (diff) | |
download | brdo-3dddaa3e6ff47b52df5836a49272952893208ddc.tar.gz brdo-3dddaa3e6ff47b52df5836a49272952893208ddc.tar.bz2 |
#356074 by chx and Damien Tournoud: Provide a sequences API. Gets rid of stupid tables that only contain an incrementing ID, and fixes database import problems due to user ID 0.
Diffstat (limited to 'includes/actions.inc')
-rw-r--r-- | includes/actions.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/actions.inc b/includes/actions.inc index ce196cfe5..6921e2f44 100644 --- a/includes/actions.inc +++ b/includes/actions.inc @@ -324,7 +324,7 @@ function actions_save($function, $type, $params, $label, $aid = NULL) { // aid is the callback for singleton actions so we need to keep a separate // table for numeric aids. if (!$aid) { - $aid = db_insert('actions_aid')->useDefaults(array('aid'))->execute(); + $aid = db_next_id(); } db_merge('actions') |