diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2013-09-06 20:52:26 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-09-27 13:34:15 +0200 |
commit | f04aa1af5d53759dfc838057a5289106489c4a25 (patch) | |
tree | b137a15200e24de7acc65db0f7e83b4791c1c8c4 /apps | |
parent | b9cd22cf7845e6192206c2f997123ba3a0bb098e (diff) | |
download | nextcloud-server-f04aa1af5d53759dfc838057a5289106489c4a25.tar.gz nextcloud-server-f04aa1af5d53759dfc838057a5289106489c4a25.zip |
LDAP: don't check var type when you can specify the type in the parameter list
Diffstat (limited to 'apps')
-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 |