Skip to content

Commit

Permalink
Merge branch 'w51_MDL-37315_m25_ldappaging' of git://github.com/skoda…
Browse files Browse the repository at this point in the history
…k/moodle
  • Loading branch information
Sam Hemelryk committed Jan 6, 2013
2 parents 9da506c + ed05ee6 commit 9ae1400
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enrol/ldap/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ protected function ldap_close() {
* @param object role is a record from the mdl_role table.
* @return array
*/
protected function find_ext_enrolments ($ldapconnection, $memberuid, $role) {
protected function find_ext_enrolments (&$ldapconnection, $memberuid, $role) {
global $CFG;
require_once($CFG->libdir.'/ldaplib.php');

Expand Down Expand Up @@ -718,13 +718,13 @@ protected function find_ext_enrolments ($ldapconnection, $memberuid, $role) {
// Get all contexts and look for first matching user
$ldap_contexts = explode(';', $ldap_contexts);
$ldap_pagedresults = ldap_paged_results_supported($this->get_config('ldap_version'));
$ldap_cookie = '';
foreach ($ldap_contexts as $context) {
$context = trim($context);
if (empty($context)) {
continue;
}

$ldap_cookie = '';
$flat_records = array();
do {
if ($ldap_pagedresults) {
Expand Down

0 comments on commit 9ae1400

Please sign in to comment.