Update user.class.php

This commit is contained in:
Frédéric FRANCE 2020-11-11 07:39:09 +01:00 committed by GitHub
parent d28249d568
commit 36cd4a8d4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3000,7 +3000,7 @@ class User extends CommonObject
$this->office_fax = $ldapuser->{$conf->global->LDAP_FIELD_FAX};
$this->email = $ldapuser->{$conf->global->LDAP_FIELD_MAIL};
foreach ($socialnetworks as $key => $value) {
$this->socialnetworks[$value['label']] = $info[$conf->global->{'LDAP_FIELD_'.strtoupper($value['label'])}];
$this->socialnetworks[$value['label']] = $ldapuser{$conf->global->{'LDAP_FIELD_'.strtoupper($value['label'])}};
}
$this->ldap_sid = $ldapuser->{$conf->global->LDAP_FIELD_SID};