mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
fixed missing global $USER causing regressions
This commit is contained in:
parent
2fb3434554
commit
5fd9e798dc
@ -2764,6 +2764,8 @@ function isguestuser($user = NULL) {
|
||||
* @return bool
|
||||
*/
|
||||
function is_guest($context, $user = NULL) {
|
||||
global $USER;
|
||||
|
||||
// first find the course context
|
||||
$coursecontext = get_course_context($context);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user