mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
enrol/mnet: list_remote_servers() must always return an array
This commit is contained in:
parent
a4d967a463
commit
79b84c93fb
@ -394,7 +394,12 @@ class enrolment_plugin_mnet {
|
||||
h2s.serviceid = s.id AND
|
||||
s.name = 'mnet_enrol'";
|
||||
|
||||
return get_records_sql($sql);
|
||||
$res = get_records_sql($sql);
|
||||
if (is_array($res)) {
|
||||
return $res;
|
||||
} else {
|
||||
return array();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user