From b036f941e3e3f8eb2508f519d2ae8d7832509787 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 5 Dec 2006 18:34:29 +0000 Subject: [PATCH] There was some random code between two functions definitions that was giving errors on restore. I assume it was just a copy and paste error, so I have deleted the offending lines so that restore works. However, someone who understands SCORM should review this. --- mod/scorm/restorelib.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/mod/scorm/restorelib.php b/mod/scorm/restorelib.php index 1f70be16bf..40886dd27a 100755 --- a/mod/scorm/restorelib.php +++ b/mod/scorm/restorelib.php @@ -207,15 +207,6 @@ return $status; } - - $sco->prerequisites = backup_todb($sub_info['#']['PREREQUISITES']['0']['#']); - $sco->maxtimeallowed = backup_todb($sub_info['#']['MAXTIMEALLOWED']['0']['#']); - $sco->timelimitaction = backup_todb($sub_info['#']['TIMELIMITACTION']['0']['#']); - $sco->datafromlms = backup_todb($sub_info['#']['DATAFROMLMS']['0']['#']); - $sco->masteryscore = backup_todb($sub_info['#']['MASTERYSCORE']['0']['#']); - $sco->next = backup_todb($sub_info['#']['NEXT']['0']['#']); - $sco->previous = backup_todb($sub_info['#']['PREVIOUS']['0']['#']); - //This function restores the scorm_scoes_track function scorm_scoes_tracks_restore_mods($scorm_id,$info,$restore) { -- 2.39.5