diff --git a/inc/drivers_ldap.php b/inc/drivers_ldap.php index a6665297..a6f7211f 100644 --- a/inc/drivers_ldap.php +++ b/inc/drivers_ldap.php @@ -254,6 +254,10 @@ function getStaticLdap() { // If the instance is not there, create one if(!isset($instance)) { $ldapDrivers = new ldapDrivers($c->authenticate_hook['config']); + $instance = $ldapDrivers + } + else { + $ldapDrivers = $instance } return $ldapDrivers; }