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;
if(!is_array($u)) {
mysql_query("INSERT INTO users (`types`,`username`,`passwordset`,`created`,`year`)
VALUES ('$type','$username','0000-00-00', NOW(), '{$config['FAIRYEAR']}')");
mysql_query("INSERT INTO users (`types`,`username`,`passwordset`,`created`,`year`, `deleted`)
VALUES ('$type','$username','0000-00-00', NOW(), '{$config['FAIRYEAR']}', 'no')");
echo mysql_error();
$uid = mysql_insert_id();
if(user_valid_email($username)) {