Skip to content

Commit

Permalink
[Minor] Fixing ldap attribut name -refs BT#18222
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoDucou committed Jan 16, 2021
1 parent 797d4f5 commit 4ece762
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main/cron/update_ldap_users.php
Expand Up @@ -50,7 +50,7 @@
Database::update($table, $params, ['id = ?' => $userId]);

$extraFields = [
'company' => $ldapUser['company'][0],
'company' => $ldapUser['department'][0],
];
foreach ($extraFields as $variable => $value) {
$params = [
Expand All @@ -61,7 +61,6 @@
print_r($params).PHP_EOL;
$extraFieldUser->save($params);
}
exit;
}
}
}

0 comments on commit 4ece762

Please sign in to comment.