|
From: Benjamin C. <bc...@us...> - 2001-10-02 23:19:45
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv25702
Modified Files:
newaccount.php
Log Message:
Bug #467200 - Using the wrong table name in with nextid()
Index: newaccount.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/newaccount.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- newaccount.php 2001/09/03 17:03:55 1.16
+++ newaccount.php 2001/10/02 23:19:42 1.17
@@ -46,7 +46,7 @@
$mpassword = $password;
}
if (EMAIL_IS_LOGIN) $login = $email;
- $user_id = $q->nextid('user');
+ $user_id = $q->nextid(TBL_AUTH_USER);
$q->query("insert into ".TBL_AUTH_USER." (user_id, login, first_name, last_name, email, password, active, created_date, last_modified_date)"
." values ($user_id, '$login', '$firstname', '$lastname', '$email', '$mpassword', 1, $now, $now)");
$q->query("insert into ".TBL_USER_GROUP." (user_id, group_id)"
|