forked from science-ation/science-ation
Needed to add a "no" value to the "deleted" field when creating a new user
This commit is contained in:
parent
4c9692682a
commit
fbba2e7e20
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user