Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SCORM MDL-27366 - show content if attemptstatus is set even if closed.
  • Loading branch information
danmarsden committed Jun 16, 2011
1 parent 6257f66 commit 1a70a64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/scorm/lib.php
Expand Up @@ -1036,7 +1036,7 @@ function scorm_print_overview($courses, &$htmlarray) {
if ($scorm->timeopen) {
$isopen = ($scorm->timeopen <= $time && $time <= $scorm->timeclose);
}
if (empty($isopen) || empty($scorm->timeclose)) {
if (empty($scorm->displayattemptstatus) && (empty($isopen) || empty($scorm->timeclose))) {
unset($scorms[$key]);
}else{
$scormids[] = $scorm->id;
Expand Down

0 comments on commit 1a70a64

Please sign in to comment.