Project

General

Profile

« Previous | Next » 

Revision 791

Added by Matthias about 16 years ago

fixed bug with registration of users are not added to signup group

View differences:

signup2.php
35 35
$database = new database();
36 36

  
37 37
// Get details entered
38
$group_id = FRONTEND_SIGNUP;
38
$groups_id = FRONTEND_SIGNUP;
39 39
$active = 1;
40 40
$username = strtolower(strip_tags($wb->get_post_escaped('username')));
41 41
$display_name = strip_tags($wb->get_post_escaped('display_name'));
......
45 45
$js_back = "javascript: history.go(-1);";
46 46

  
47 47
// Check values
48
if($group_id == "") {
48
if($groups_id == "") {
49 49
	$wb->print_error($MESSAGE['USERS']['NO_GROUP'], $js_back, false);
50 50
}
51 51
if(strlen($username) < 3) {
......
107 107
$md5_password = md5($new_pass);
108 108

  
109 109
// Inser the user into the database
110
$query = "INSERT INTO ".TABLE_PREFIX."users (group_id,active,username,password,display_name,email) VALUES ('$group_id', '$active', '$username','$md5_password','$display_name','$email')";
110
$query = "INSERT INTO ".TABLE_PREFIX."users (groups_id,active,username,password,display_name,email) VALUES ('$groups_id', '$active', '$username','$md5_password','$display_name','$email')";
111 111
$database->query($query);
112 112

  
113 113
if($database->is_error()) {

Also available in: Unified diff