fixed incorrect page id
This commit is contained in:
@@ -218,7 +218,7 @@ class lesson_page_type_essay extends lesson_page {
|
||||
}
|
||||
public function is_unanswered($nretakes) {
|
||||
global $DB, $USER;
|
||||
if (!$DB->count_records("lesson_attempts", array('pageid'=>$thispage->id, 'userid'=>$USER->id, 'retry'=>$nretakes))) {
|
||||
if (!$DB->count_records("lesson_attempts", array('pageid'=>$this->properties->id, 'userid'=>$USER->id, 'retry'=>$nretakes))) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user