Add missing LDAP code to login

This commit is contained in:
2023-03-02 08:40:55 +01:00
parent 1c8021c325
commit 5e605692dd
2 changed files with 50 additions and 10 deletions

View File

@@ -168,6 +168,8 @@ function db_load_enum($table, $column) {
WHERE table_name=? AND column_name=?";
$sth = $dbh->prepare($sql);
$sth->execute([$table, $column]);
// Für PHP < 7.4
// return array_map(function($x) { return trim($x, "'"); }, explode(',', $sth->fetchColumn()));
return array_map(fn($x) => trim($x, "'"), explode(',', $sth->fetchColumn()));
}