mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
Fix ldapDriver instantiation
This commit is contained in:
1 parent
364bbd1df5
commit
6edd828803
1 file changed
+5
-5
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user