aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_user.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions_user.inc.php')
-rw-r--r--include/functions_user.inc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index 6db576609..a599539e8 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -94,10 +94,10 @@ SELECT MAX('.$conf['user_fields']['id'].') + 1
mass_inserts(USERS_TABLE, array_keys($insert), array($insert));
// Assign by default one group
- if(isset($conf['id_group']))
+ if(isset($conf['default_group_id']))
{
$query = '
-select count(*) from '.GROUPS_TABLE.' where id = '.$conf['id_group'].';';
+select count(*) from '.GROUPS_TABLE.' where id = '.$conf['default_group_id'].';';
list($exist_group) = mysql_fetch_array(pwg_query($query));
if ($exist_group == 1)
@@ -105,7 +105,7 @@ select count(*) from '.GROUPS_TABLE.' where id = '.$conf['id_group'].';';
$insert =
array(
'user_id' => $next_id,
- 'group_id' => $conf['id_group']
+ 'group_id' => $conf['default_group_id']
);
include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');