From 4d791aad067629e72809cd4135a5192f6d167dc1 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Thu, 25 May 2023 10:12:42 +0200 Subject: [PATCH] Make AuthController.php compatible with php8.1+ php api changed https://www.php.net/manual/en/class.ldap-result.php --- app/Controllers/Auth/AuthController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/Auth/AuthController.php b/app/Controllers/Auth/AuthController.php index ecdb33d9..af80e25c 100644 --- a/app/Controllers/Auth/AuthController.php +++ b/app/Controllers/Auth/AuthController.php @@ -94,7 +94,7 @@ protected function getLdapRdn(string $username, $server) $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;