Révision be58a50c
Ajouté par Assos Assos il y a environ 7 ans
drupal7/sites/all/modules/ldap/ldap_user/LdapUserConf.class.php | ||
---|---|---|
509 | 509 |
if (is_scalar($account)) { |
510 | 510 |
$username = $account; |
511 | 511 |
$account = new stdClass(); |
512 |
$acount->name = $username; |
|
512 |
$account->name = $username;
|
|
513 | 513 |
} |
514 | 514 |
|
515 | 515 |
list($account, $user_entity) = ldap_user_load_user_acct_and_entity($account->name); |
... | ... | |
867 | 867 |
// determine server that is associated with user |
868 | 868 |
|
869 | 869 |
$boolean_result = FALSE; |
870 |
$language = ($account->language) ? $account->language : LANGUAGE_NONE; |
|
871 |
if (isset($account->ldap_user_prov_entries[$language][0])) { |
|
872 |
foreach ($account->ldap_user_prov_entries[$language] as $i => $field_instance) { |
|
870 |
if (isset($account->ldap_user_prov_entries[LANGUAGE_NONE][0])) { |
|
871 |
foreach ($account->ldap_user_prov_entries[LANGUAGE_NONE] as $i => $field_instance) { |
|
873 | 872 |
$parts = explode('|', $field_instance['value']); |
874 | 873 |
if (count($parts) == 2) { |
875 | 874 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules