diff options
Diffstat (limited to 'apps/user_ldap')
-rw-r--r-- | apps/user_ldap/lib/backendbase.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/apps/user_ldap/lib/backendbase.php b/apps/user_ldap/lib/backendbase.php index 7ed079b3418..5ed73a0a5b1 100644 --- a/apps/user_ldap/lib/backendbase.php +++ b/apps/user_ldap/lib/backendbase.php @@ -39,12 +39,8 @@ abstract class BackendBase { * The LDAP Wrapper must implement the PHP LDAP functions, which are used * in the LDAP backend */ - public function setLDAPWrapper($ldapWrapper) { - if(is_object($ldapWrapper)) { - unset($this->ldap); - $this->ldap = $ldapWrapper; - return true; - } - return false; + public function setLDAPWrapper(ILDAPWrapper $ldapWrapper) { + $this->ldap = $ldapWrapper; + return true; } }
\ No newline at end of file |