diff --git a/app/Controllers/Auth/AuthController.php b/app/Controllers/Auth/AuthController.php index ecdb33d..af80e25 100644 --- a/app/Controllers/Auth/AuthController.php +++ b/app/Controllers/Auth/AuthController.php @@ -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;