mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
MDL-57054 mod_quiz: check_updates_since not returning questionids
This commit is contained in:
parent
b4d6669dd0
commit
8abfb7b1bb
@ -1935,7 +1935,7 @@ function quiz_check_updates_since(cm_info $cm, $from, $filter = array()) {
|
||||
$select = 'id ' . $questionsql . ' AND (timemodified > :time1 OR timecreated > :time2)';
|
||||
$params['time1'] = $from;
|
||||
$params['time2'] = $from;
|
||||
$questions = $DB->count_records_select('question', $select, $params) > 0;
|
||||
$questions = $DB->get_records_select('question', $select, $params, '', 'id');
|
||||
if (!empty($questions)) {
|
||||
$updates->questions->updated = true;
|
||||
$updates->questions->itemids = array_keys($questions);
|
||||
|
Loading…
x
Reference in New Issue
Block a user