mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:34:28 +01:00
mod/scorm: fixed syntax errors (switch to an editor that balances brackets, mate ;-) -- credits to Nigel McNie
This commit is contained in:
parent
39132bce56
commit
d57f7fda7c
@ -35,7 +35,7 @@
|
||||
|
||||
if (confirm_sesskey() && (!empty($scoid))) {
|
||||
$result = true;
|
||||
if (isstudent($course->id) || (isteacher($course->id) && !isadmin()) {
|
||||
if (isstudent($course->id) || (isteacher($course->id) && !isadmin())) {
|
||||
if ($lastattempt = get_record('scorm_scoes_track', 'userid', $USER->id, 'scorm', $scorm->id, 'scoid', $scoid,'max(attempt) as a')) {
|
||||
if ($newattempt == 'new') {
|
||||
$attempt = $lastattempt->a + 1;
|
||||
|
@ -224,6 +224,7 @@ function scorm_upgrade($oldversion) {
|
||||
|
||||
if ($oldversion < 2005102800) {
|
||||
table_column("scorm", "", "maxattempt", "integer", "", "UNSIGNED", "1", "NOT NULL", "maxgrade");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user