Skip to content

Commit ad7319c

Browse files
committed
VID-907: Return recordset when disabled
1 parent 8b9dd6d commit ad7319c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/search/texttrack.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function get_document_recordset($modifiedfrom = 0, ?\context $context = n
4949
global $DB;
5050

5151
if (!get_config('videotimetab_texttrack', 'enabled')) {
52-
return null;
52+
return $DB->get_recordset_select('videotime', 'FALSE');
5353
}
5454

5555
[$contextjoin, $contextparams] = $this->get_context_restriction_sql(

0 commit comments

Comments
 (0)