LDAP: don't check var type when you can specify the type in the parameter list

This commit is contained in:
Arthur Schiwon 2013-09-06 20:52:26 +02:00
parent b9cd22cf78
commit f04aa1af5d
1 changed files with 3 additions and 7 deletions

View File

@ -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;
}
}