Browse files

MDL-26956 user selector: fix regressions sam caused.

  • Loading branch information...
1 parent 0e0a980 commit d2e32121b085c64ed0f4d0a6b1eea4fea1d57c89 @timhunt timhunt committed Apr 3, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/datalib.php
  2. +1 −1 user/selector/lib.php
View
2 lib/datalib.php
@@ -216,7 +216,7 @@ function search_users($courseid, $groupid, $searchtext, $sort='', array $excepti
* parameters (using named placeholders).
*/
function users_search_sql($search, $u = 'u', $searchanywhere = true, array $extrafields = array(),
- array $exclude = array(), array $includeonly = array()) {
+ array $exclude = null, array $includeonly = null) {
global $DB, $CFG;
$params = array();
$tests = array();
View
2 user/selector/lib.php
@@ -434,7 +434,7 @@ protected function required_fields_sql($u) {
* this uses ? style placeholders.
*/
protected function search_sql($search, $u) {
- return users_search_sql($search, 'u', $this->searchanywhere, $this->extrafields,
+ return users_search_sql($search, $u, $this->searchanywhere, $this->extrafields,
$this->exclude, $this->validatinguserids);
}

0 comments on commit d2e3212

Please sign in to comment.