mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-01-27 00:33:34 +00:00
Fix ldapDriver instantiation
This commit is contained in:
parent
364bbd1df5
commit
6edd828803
@ -261,16 +261,16 @@ function getStaticLdap() {
|
||||
|
||||
// If the instance is not there, create one
|
||||
if(!isset($instance)) {
|
||||
$ldapDrivers = new ldapDrivers($c->authenticate_hook['config']);
|
||||
$ldapDriver = new ldapDriver($c->authenticate_hook['config']);
|
||||
|
||||
if ($ldapDrivers->valid) {
|
||||
$instance = $ldapDrivers;
|
||||
if ($ldapDriver->valid) {
|
||||
$instance = $ldapDriver;
|
||||
}
|
||||
}
|
||||
else {
|
||||
$ldapDrivers = $instance;
|
||||
$ldapDriver = $instance;
|
||||
}
|
||||
return $ldapDrivers;
|
||||
return $ldapDriver;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user