Merge pull request #14 from matthiasbeyer/fix-ldap_driver_caching

Fix ldap driver caching
This commit is contained in:
Andrew Ruthven 2013-09-23 03:06:08 -07:00
commit ad4e6f1a0b

View File

@ -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;
}