2012-04-03 Vanessa Gil <vanessa.gil@artica.es>
* include/functions_groups.php: godmode/users/configure_user.php: Fixed bug creating users. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5886 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
bd0ab88357
commit
12af21cb24
|
@ -1,3 +1,8 @@
|
||||||
|
2012-04-03 Vanessa Gil <vanessa.gil@artica.es>
|
||||||
|
|
||||||
|
* include/functions_groups.php:
|
||||||
|
godmode/users/configure_user.php: Fixed bug creating users.
|
||||||
|
|
||||||
2012-04-03 Dario Rodriguez <dario.rodriguez@artica.es>
|
2012-04-03 Dario Rodriguez <dario.rodriguez@artica.es>
|
||||||
|
|
||||||
* godmode/menu.php,
|
* godmode/menu.php,
|
||||||
|
|
|
@ -125,7 +125,6 @@ if ($create_user) {
|
||||||
$values['comments'] = (string) get_parameter ('comments');
|
$values['comments'] = (string) get_parameter ('comments');
|
||||||
$values['is_admin'] = (int) get_parameter ('is_admin', 0);
|
$values['is_admin'] = (int) get_parameter ('is_admin', 0);
|
||||||
$values['language'] = get_parameter ('language', 'default');
|
$values['language'] = get_parameter ('language', 'default');
|
||||||
$values['created by'] = $config['id_user'];
|
|
||||||
if ($isFunctionSkins !== ENTERPRISE_NOT_HOOK) {
|
if ($isFunctionSkins !== ENTERPRISE_NOT_HOOK) {
|
||||||
$values['id_skin'] = (int) get_parameter ('skin', 0);
|
$values['id_skin'] = (int) get_parameter ('skin', 0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -588,7 +588,10 @@ function groups_get_users ($id_group, $filter = false) {
|
||||||
$result = $resulta;
|
$result = $resulta;
|
||||||
else
|
else
|
||||||
$result = array_merge($resulta,$resultb);
|
$result = array_merge($resulta,$resultb);
|
||||||
|
|
||||||
|
if ($result === false)
|
||||||
|
return array ();
|
||||||
|
|
||||||
//This removes stale users from the list. This can happen if switched to another auth scheme
|
//This removes stale users from the list. This can happen if switched to another auth scheme
|
||||||
//(internal users still exist) or external auth has users removed/inactivated from the list (eg. LDAP)
|
//(internal users still exist) or external auth has users removed/inactivated from the list (eg. LDAP)
|
||||||
$retval = array ();
|
$retval = array ();
|
||||||
|
|
Loading…
Reference in New Issue