Make AuthController.php compatible with php8.1+

php api changed https://www.php.net/manual/en/class.ldap-result.php
This commit is contained in:
Johannes Zellner 2023-05-25 10:12:42 +02:00 committed by GitHub
parent 9c85698c28
commit 4d791aad06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,7 @@ abstract class AuthController extends Controller
$searchFilter,
$ldapAddributes
);
if (!is_resource($ldapSearchResp)) {
if (!$ldapSearchResp) {
$this->logger->debug(ldap_error($server));
$this->logger->error("User LDAP search for user $username failed");
return null;