Needed to add a "no" value to the "deleted" field when creating a new user

This commit is contained in:
james 2010-06-09 16:14:01 +00:00
parent 4c9692682a
commit fbba2e7e20

View File

@ -721,8 +721,8 @@ function user_create($type, $username, $u = NULL)
{ {
global $config; global $config;
if(!is_array($u)) { if(!is_array($u)) {
mysql_query("INSERT INTO users (`types`,`username`,`passwordset`,`created`,`year`) mysql_query("INSERT INTO users (`types`,`username`,`passwordset`,`created`,`year`, `deleted`)
VALUES ('$type','$username','0000-00-00', NOW(), '{$config['FAIRYEAR']}')"); VALUES ('$type','$username','0000-00-00', NOW(), '{$config['FAIRYEAR']}', 'no')");
echo mysql_error(); echo mysql_error();
$uid = mysql_insert_id(); $uid = mysql_insert_id();
if(user_valid_email($username)) { if(user_valid_email($username)) {