Skip to content

Commit

Permalink
🐛 fix(Builder): adding option only exists controls
Browse files Browse the repository at this point in the history
  • Loading branch information
jpizzribeiro authored Jul 1, 2023
1 parent 821e557 commit dcb5ff8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ public function query($query)
*
* @return Collection|array
*/
public function paginate($pageSize = 5000, $isCritical = true)
public function paginate($pageSize = 1000, $isCritical = true)
{
$this->paginated = true;

Expand Down Expand Up @@ -483,7 +483,9 @@ protected function run($filter)
// Before running the query, we will set the LDAP server controls. This
// allows the controls to be automatically reset upon each new query
// that is conducted on the same connection during each request.
// $ldap->setOption(LDAP_OPT_SERVER_CONTROLS, $this->controls);
if (count($this->controls) > 0) {
$ldap->setOption(LDAP_OPT_SERVER_CONTROLS, $this->controls);
}

return $ldap->{$this->type}(
$this->getDn(),
Expand Down

0 comments on commit dcb5ff8

Please sign in to comment.