From ae256fac237acd70ea077365bf1fca1aa20aa8c8 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Sat, 18 Sep 2010 13:44:01 +0000 Subject: [PATCH] fixed missing global --- mod/scorm/datamodels/sequencinglib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mod/scorm/datamodels/sequencinglib.php b/mod/scorm/datamodels/sequencinglib.php index 2b839f7e178..f432bf0ece5 100755 --- a/mod/scorm/datamodels/sequencinglib.php +++ b/mod/scorm/datamodels/sequencinglib.php @@ -495,6 +495,7 @@ function scorm_seq_overall_rollup($sco,$userid){//Carlos /* For this next function I have defined measure weight and measure status as records with the attempt = 0 on the scorm_scoes_track table. According to the page 89 of the SeqNav.pdf those datas give us some information about the progress of the objective*/ function scorm_seq_measure_rollup($sco,$userid){ + global $DB; $totalmeasure = 0; //Check if there is something similar in the database $valid = false;//Same as in the last line -- 2.43.0