mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-25 02:34:17 +00:00
Merge pull request #14 from matthiasbeyer/fix-ldap_driver_caching
Fix ldap driver caching
This commit is contained in:
commit
ad4e6f1a0b
@ -254,6 +254,13 @@ function getStaticLdap() {
|
|||||||
// If the instance is not there, create one
|
// If the instance is not there, create one
|
||||||
if(!isset($instance)) {
|
if(!isset($instance)) {
|
||||||
$ldapDrivers = new ldapDrivers($c->authenticate_hook['config']);
|
$ldapDrivers = new ldapDrivers($c->authenticate_hook['config']);
|
||||||
|
|
||||||
|
if ($ldapDrivers->valid) {
|
||||||
|
$instance = $ldapDrivers
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$ldapDrivers = $instance
|
||||||
}
|
}
|
||||||
return $ldapDrivers;
|
return $ldapDrivers;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user