Code

Fixed W3c errors.
[gosa.git] / include / functions.inc
index 1bbd8436bac78fa20c6a11b09f7daa25669e3ec8..d628de47a0033dcd92f7e7f1376d9a0c7bf9f2f7 100644 (file)
@@ -358,7 +358,7 @@ function ldap_login_user ($username, $password)
 
   /* 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();
@@ -1121,7 +1121,7 @@ function gen_locked_message($user, $dn)
   $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');