mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
MDL-26956 user selector: fix regressions sam caused.
This commit is contained in:
parent
0e0a980631
commit
d2e32121b0
@ -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();
|
||||
|
@ -434,7 +434,7 @@ abstract class user_selector_base {
|
||||
* 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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user