From 81d7bbff36dc07dacbd663728a52ff5d5c4c30c9 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Tue, 13 Jun 2006 18:32:48 +0000 Subject: use user_add function for bot adding git-svn-id: file:///svn/phpbb/trunk@6056 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_user.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'phpBB/includes') diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 5574c85a5d..1bbeeff8bc 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -126,7 +126,7 @@ function user_add($user_row, $cp_data = false) { global $db, $config; - if (empty($user_row['username']) || !isset($user_row['group_id']) || empty($user_row['user_email']) || !isset($user_row['user_type'])) + if (empty($user_row['username']) || !isset($user_row['group_id']) || !isset($user_row['user_email']) || !isset($user_row['user_type'])) { return false; } @@ -182,6 +182,8 @@ function user_add($user_row, $cp_data = false) 'user_sig' => '', 'user_sig_bbcode_uid' => '', 'user_sig_bbcode_bitfield' => 0, + + 'user_rank' => 0, ); // Now fill the sql array with not required variables -- cgit v1.2.1