From fbba2e7e20efab2b4a75270bad64e2153d5860f1 Mon Sep 17 00:00:00 2001 From: james Date: Wed, 9 Jun 2010 16:14:01 +0000 Subject: [PATCH] Needed to add a "no" value to the "deleted" field when creating a new user --- user.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user.inc.php b/user.inc.php index bba9bc7..b6d4dcd 100644 --- a/user.inc.php +++ b/user.inc.php @@ -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)) {