From 3dddaa3e6ff47b52df5836a49272952893208ddc Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 18 Oct 2009 06:56:24 +0000 Subject: #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. --- includes/actions.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/actions.inc') 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') -- cgit v1.2.3