From 6edd828803ddebc199bf708be39d60c2fe791975 Mon Sep 17 00:00:00 2001 From: Florian Schlichting Date: Tue, 17 Jan 2017 23:36:05 +0100 Subject: [PATCH] Fix ldapDriver instantiation --- inc/drivers_ldap.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/inc/drivers_ldap.php b/inc/drivers_ldap.php index b1cdde6c..d2adc153 100644 --- a/inc/drivers_ldap.php +++ b/inc/drivers_ldap.php @@ -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; }