diff options
author | rub <rub@piwigo.org> | 2006-10-29 13:42:19 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2006-10-29 13:42:19 +0000 |
commit | a0e981198d4602c7634407780379c19d58b92e15 (patch) | |
tree | b77c68ec27c787836cc0a5fcfd70788456a8347f /include/functions_user.inc.php | |
parent | 2433a7cb54c024e8142ad81d182440ff692e377b (diff) |
Resolved Issue ID 0000526:
o Add default group to new user
Change default value and $conf name.
git-svn-id: http://piwigo.org/svn/trunk@1582 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/functions_user.inc.php | 6 |
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'); |