aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/Wizard.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap/lib/Wizard.php')
-rw-r--r--apps/user_ldap/lib/Wizard.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/user_ldap/lib/Wizard.php b/apps/user_ldap/lib/Wizard.php
index 9b037b47134..98d399b77b9 100644
--- a/apps/user_ldap/lib/Wizard.php
+++ b/apps/user_ldap/lib/Wizard.php
@@ -820,7 +820,7 @@ class Wizard extends LDAPUtility {
return false;
}
$er = $this->ldap->firstEntry($cr, $rr);
- while (is_resource($er)) {
+ while ($this->ldap->isResource($er)) {
$this->ldap->getDN($cr, $er);
$attrs = $this->ldap->getAttributes($cr, $er);
$result = [];
@@ -1066,7 +1066,7 @@ class Wizard extends LDAPUtility {
['app' => 'user_ldap']
);
$cr = $this->ldap->connect($host, $port);
- if (!is_resource($cr)) {
+ if (!$this->ldap->isResource($cr)) {
throw new \Exception(self::$l->t('Invalid Host'));
}
@@ -1276,7 +1276,7 @@ class Wizard extends LDAPUtility {
/**
* appends a list of values fr
- * @param resource $result the return value from ldap_get_attributes
+ * @param array $result the return value from ldap_get_attributes
* @param string $attribute the attribute values to look for
* @param array &$known new values will be appended here
* @return int, state on of the class constants LRESULT_PROCESSED_OK,