Skip to content

Commit

Permalink
Merge pull request #2 from bryank-cs/patch-1
Browse files Browse the repository at this point in the history
Update LDAPEntry.php
  • Loading branch information
hakasapl authored Nov 5, 2024
2 parents d46c4c3 + eeecad5 commit ddc8a06
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/PHPOpenLDAPer/LDAPEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ public function __construct($conn, $dn)
*/
private function pullObject()
{
$search = @ldap_get_entries($this->conn, ldap_read($this->conn, $this->dn, "(objectclass=*)"));
$result = ldap_read($this->conn, $this->dn, "(objectclass=*)");
if ($result === false) {
return false;
}
$search = @ldap_get_entries($this->conn, $result);
LDAPConn::stripCount($search);

if (isset($search)) {
Expand Down

0 comments on commit ddc8a06

Please sign in to comment.