From 742410aafdf3d85ec3f0060e5c9fd1d09ee71672 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 22 Oct 2003 13:03:32 +0000 Subject: - Bugfix: prefix not prepended to sequences. Fixes bug #3639. Make sure to write: db_next_id({table}_field); instead of: db_next_id(table_field); --- modules/aggregator/aggregator.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/aggregator/aggregator.module') diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index 57739dae8..c22175721 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -453,7 +453,7 @@ function import_save_bundle($edit) { } else if ($edit["title"]) { // a single unique id for bundles and feeds, to use in blocks - $next_id = db_next_id("bundle_bid"); + $next_id = db_next_id("{bundle}_bid"); db_query("INSERT INTO {bundle} (bid, title, attributes) VALUES (%d, '%s', '%s')", $next_id, $edit["title"], $edit["attributes"]); } } @@ -492,7 +492,7 @@ function import_save_feed($edit) { } else if ($edit["title"]) { // a single unique id for bundles and feeds, to use in blocks - $next_id = db_next_id("feed_fid"); + $next_id = db_next_id("{feed}_fid"); db_query("INSERT INTO {feed} (fid, title, url, attributes, refresh) VALUES (%d, '%s', '%s', '%s', %d)", $next_id, $edit["title"], $edit["url"], $edit["attributes"], $edit["refresh"]); } } -- cgit v1.2.3