diff --git a/include/functions.inc b/include/functions.inc
index 1bbd8436bac78fa20c6a11b09f7daa25669e3ec8..d628de47a0033dcd92f7e7f1376d9a0c7bf9f2f7 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
/* got user dn, fill acl's */
$ui= new userinfo($config, $ldap->getDN());
/* got user dn, fill acl's */
$ui= new userinfo($config, $ldap->getDN());
- $ui->username= $attrs['uid'];
+ $ui->username= $attrs['uid'][0];
/* password check, bind as user with supplied password */
$ldap->disconnect();
/* password check, bind as user with supplied password */
$ldap->disconnect();
$remove= false;
/* Save variables from LOCK_VARS_TO_USE in session - for further editing */
$remove= false;
/* Save variables from LOCK_VARS_TO_USE in session - for further editing */
- if( is_global(LOCK_VARS_TO_USE) && count(get_global('LOCK_VARS_TO_USE'))){
+ if( is_global('LOCK_VARS_TO_USE') && count(get_global('LOCK_VARS_TO_USE'))){
$LOCK_VARS_USED = array();
$LOCK_VARS_TO_USE = get_global('LOCK_VARS_TO_USE');
$LOCK_VARS_USED = array();
$LOCK_VARS_TO_USE = get_global('LOCK_VARS_TO_USE');