mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 04:48:53 +00:00
Cross ci, converter not updated. (as 3.1 schema won't fit any more)
git-svn-id: file:///svn/phpbb/trunk@8383 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
65ba4fe94e
commit
95f11a38c0
2 changed files with 7 additions and 3 deletions
|
@ -173,7 +173,7 @@ define('FIELD_DATE', 6);
|
||||||
|
|
||||||
|
|
||||||
// Additional constants
|
// Additional constants
|
||||||
define('VOTE_CONVERTED', 9999);
|
define('VOTE_CONVERTED', 127);
|
||||||
|
|
||||||
// Table names
|
// Table names
|
||||||
define('ACL_GROUPS_TABLE', $table_prefix . 'acl_groups');
|
define('ACL_GROUPS_TABLE', $table_prefix . 'acl_groups');
|
||||||
|
|
|
@ -143,7 +143,11 @@ function user_update_name($old_name, $new_name)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add User
|
* Adds an user
|
||||||
|
*
|
||||||
|
* @param mixed $user_row An array containing the following keys (and the appropriate values): username, group_id (the group to place the user in), user_email and the user_type(usually 0). Additional entries not overridden by defaults will be forwarded.
|
||||||
|
* @param string $cp_data custom profile fields, see custom_profile::build_insert_sql_array
|
||||||
|
* @return: the new user's ID.
|
||||||
*/
|
*/
|
||||||
function user_add($user_row, $cp_data = false)
|
function user_add($user_row, $cp_data = false)
|
||||||
{
|
{
|
||||||
|
@ -281,7 +285,7 @@ function user_add($user_row, $cp_data = false)
|
||||||
|
|
||||||
$sql = 'SELECT group_colour
|
$sql = 'SELECT group_colour
|
||||||
FROM ' . GROUPS_TABLE . '
|
FROM ' . GROUPS_TABLE . '
|
||||||
WHERE group_id = ' . $user_row['group_id'];
|
WHERE group_id = ' . (int) $user_row['group_id'];
|
||||||
$result = $db->sql_query_limit($sql, 1);
|
$result = $db->sql_query_limit($sql, 1);
|
||||||
$row = $db->sql_fetchrow($result);
|
$row = $db->sql_fetchrow($result);
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
Loading…
Add table
Reference in a new issue