mod/scorm: fixed syntax errors (switch to an editor that balances brackets, mate ;-) -- credits to Nigel McNie

This commit is contained in:
martinlanghoff 2005-12-12 03:26:54 +00:00
parent 39132bce56
commit d57f7fda7c
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -224,6 +224,7 @@ function scorm_upgrade($oldversion) {
if ($oldversion < 2005102800) {
table_column("scorm", "", "maxattempt", "integer", "", "UNSIGNED", "1", "NOT NULL", "maxgrade");
}
return true;
}
?>