aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/config_default.inc.php2
-rw-r--r--include/functions_user.inc.php6
2 files changed, 4 insertions, 4 deletions
diff --git a/include/config_default.inc.php b/include/config_default.inc.php
index 657c0c0e2..a27b604e6 100644
--- a/include/config_default.inc.php
+++ b/include/config_default.inc.php
@@ -223,7 +223,7 @@ $conf['check_upgrade_feed'] = true;
$conf['rate_items'] = array(0,1,2,3,4,5);
// Dafault groups to assign to new user
-$conf['id_group'] = 1;
+$conf['default_group_id'] = -1;
// +-----------------------------------------------------------------------+
// | metadata |
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');