mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-15112 lesson dml conversion
This commit is contained in:
parent
667b0a1601
commit
590a837a34
@ -790,8 +790,10 @@
|
||||
}
|
||||
} elseif ($lesson->nextpagedefault == LESSON_UNANSWEREDPAGE) {
|
||||
foreach ($allpages as $thispage) {
|
||||
if (!$DB->count_records_select("lesson_attempts", array('pageid'=>$thispage->id,
|
||||
'userid'=>$USER->id, 'correct'=>1, 'retry'=>$nretakes))) {
|
||||
$params = array('pageid'=>$thispage->id,
|
||||
'userid'=>$USER->id, 'correct'=>1, 'retry'=>$nretakes);
|
||||
if (!count_records_select("lesson_attempts", "pageid = :pageid AND
|
||||
userid = :userid AND correct = 1 AND retry = :retry", $params)) {
|
||||
$found = true;
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user