Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2021-10-26 17:43:39 +0300
committerCôme Chilliet <come.chilliet@nextcloud.com>2021-12-16 11:43:30 +0300
commitf3dcbfe146782d2c7dec8760651e79605ddc96e7 (patch)
treea22984b0976ae1b7ac4ba3082217bc5dd8b34f61 /apps/user_ldap/lib/Wizard.php
parent37f8f7a5a18e57507330036b747d4b12e58efae4 (diff)
Fix PHP 8.1 support for user_ldap application
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
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,