mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-24 02:24:39 +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(!isset($instance)) {
|
||||
$ldapDrivers = new ldapDrivers($c->authenticate_hook['config']);
|
||||
|
||||
if ($ldapDrivers->valid) {
|
||||
$instance = $ldapDrivers
|
||||
}
|
||||
}
|
||||
else {
|
||||
$ldapDrivers = $instance
|
||||
}
|
||||
return $ldapDrivers;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user