diff --git a/lib/LDAP.php b/lib/LDAP.php index 5b546629..49faf705 100644 --- a/lib/LDAP.php +++ b/lib/LDAP.php @@ -261,6 +261,12 @@ public function isResource($resource) { if ($resource instanceof \LDAP\Connection) { return true; } + if ($resource instanceof \LDAP\Result) { + return true; + } + if ($resource instanceof \LDAP\ResultEntry) { + return true; + } return \is_resource($resource); }