Project

General

Profile

« Previous | Next » 

Revision 812

Added by thorn over 16 years ago

added missing group_id in INSERT-query

View differences:

trunk/wb/admin/users/add.php
92 92
$md5_password = md5($password);
93 93

  
94 94
// Inser the user into the database
95
$query = "INSERT INTO ".TABLE_PREFIX."users (groups_id,active,username,password,display_name,home_folder,email,timezone, language) VALUES ('$groups_id', '$active', '$username','$md5_password','$display_name','$home_folder','$email','-72000', '$default_language')";
95
$query = "INSERT INTO ".TABLE_PREFIX."users (group_id,groups_id,active,username,password,display_name,home_folder,email,timezone, language) VALUES ('$group_id', '$groups_id', '$active', '$username','$md5_password','$display_name','$home_folder','$email','-72000', '$default_language')";
96 96
$database->query($query);
97 97
if($database->is_error()) {
98 98
	$admin->print_error($database->get_error());

Also available in: Unified diff