mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-51563 core_user: Fix invalid passed parameteres in get_user
This commit is contained in:
parent
74fad2ce3d
commit
d1b30757bd
@ -69,10 +69,10 @@ class core_user {
|
||||
// If noreply user then create fake record and return.
|
||||
switch ($userid) {
|
||||
case self::NOREPLY_USER:
|
||||
return self::get_noreply_user($strictness);
|
||||
return self::get_noreply_user();
|
||||
break;
|
||||
case self::SUPPORT_USER:
|
||||
return self::get_support_user($strictness);
|
||||
return self::get_support_user();
|
||||
break;
|
||||
default:
|
||||
return $DB->get_record('user', array('id' => $userid), $fields, $strictness);
|
||||
|
Loading…
x
Reference in New Issue
Block a user