Add missing LDAP code to login
This commit is contained in:
2
lib.php
2
lib.php
@@ -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()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user