summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-10-22 13:03:32 +0000
committerDries Buytaert <dries@buytaert.net>2003-10-22 13:03:32 +0000
commit742410aafdf3d85ec3f0060e5c9fd1d09ee71672 (patch)
tree94bb8a1c027c4aad144eb6870c6de7b96c8162cd /modules/user/user.module
parent90e5e355cb9fe0186d70c8ebde8c7a7bc1324ea4 (diff)
downloadbrdo-742410aafdf3d85ec3f0060e5c9fd1d09ee71672.tar.gz
brdo-742410aafdf3d85ec3f0060e5c9fd1d09ee71672.tar.bz2
- 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);
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index bc75f8da0..6c3cfabd5 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -141,7 +141,7 @@ function user_save($account, $array = array()) {
}
else {
$array["timestamp"] = time();
- $array["uid"] = db_next_id("users_uid");
+ $array["uid"] = db_next_id("{users}_uid");
foreach ($array as $key => $value) {
if ($key == "pass") {
@@ -1296,7 +1296,7 @@ function user_admin_access($edit = array()) {
}
if ($op == t("Add rule")) {
- $aid = db_next_id("access_aid");
+ $aid = db_next_id("{access}_aid");
db_query("INSERT INTO {access} (aid, mask, type, status) VALUES ('%s', '%s', '%s', %d)", $aid, $edit["mask"], $type, $edit["status"]);
$output .= status(t("access rule added."));
}