Skip to content

Commit

Permalink
Merge branch 'w01_MDL-43503_m27_pagedldap' of https://github.com/skod…
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Jan 7, 2014
2 parents b3b1b18 + deae602 commit 7ad46ac
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/ldaplib.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,19 +382,14 @@ function ldap_stripslashes($text) {


/**
* Check if PHP supports LDAP paged results and we can use them (we have to use LDAP
* version 3, otherwise the server doesn't use them).
* Check if we use LDAP version 3, otherwise the server cannot use them.
*
* @param ldapversion integer The LDAP protocol version we use.
*
* @return boolean true is paged results can be used, false otherwise.
*/
function ldap_paged_results_supported($ldapversion) {

if (((int)$ldapversion === 3) &&
function_exists('ldap_control_paged_result') &&
function_exists('ldap_control_paged_result_response')) {

if ((int)$ldapversion === 3) {
return true;
}

Expand Down

0 comments on commit 7ad46ac

Please sign in to comment.