- Fixed lastInsertId (dn) and queryResult count

This commit is contained in:
Dave Mc Nicoll 2022-05-12 12:11:16 +00:00
parent 353e494992
commit 0c6ef271a8
1 changed files with 7 additions and 4 deletions

View File

@ -16,7 +16,7 @@ class LdapObject {
public int $bufferedRows = 0;
public int $lastInsertId = 0;
public /*int*/ $lastInsertId = 0;
public string $dn;
@ -166,7 +166,10 @@ class LdapObject {
$this->throwLdapException();
}
$this->rowCount = 1;
if ($queryResult) {
$this->rowCount = (int)$queryResult;
$this->lastInsertId = $dn;
}
return $this;
}
@ -179,7 +182,7 @@ class LdapObject {
$this->throwLdapException();
}
$this->rowCount = 1;
$this->rowCount = (int) $queryResult;
return $this;
}
@ -192,7 +195,7 @@ class LdapObject {
$this->throwLdapException();
}
$this->rowCount = 1;
$this->rowCount = (int) $queryResult;
return $this;
}