Merge branch 'MDL-81634-main' of https://github.com/andrewnicols/moodle
This commit is contained in:
@@ -64,7 +64,7 @@ class course_teacher extends \core_search\base {
|
||||
* @param \context|null $context Optional context to restrict scope of returned results
|
||||
* @return \moodle_recordset|null Recordset (or null if no results)
|
||||
*/
|
||||
public function get_document_recordset($modifiedfrom = 0, \context $context = null) {
|
||||
public function get_document_recordset($modifiedfrom = 0, ?\context $context = null) {
|
||||
global $DB;
|
||||
$teacherroleids = get_config('core', 'searchteacherroles');
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ class user extends \core_search\base {
|
||||
* @param \context|null $context Optional context to restrict scope of returned results
|
||||
* @return \moodle_recordset|null Recordset (or null if no results)
|
||||
*/
|
||||
public function get_document_recordset($modifiedfrom = 0, \context $context = null) {
|
||||
public function get_document_recordset($modifiedfrom = 0, ?\context $context = null) {
|
||||
global $DB;
|
||||
|
||||
// Prepare query conditions.
|
||||
|
||||
Reference in New Issue
Block a user