]> git.mjollnir.org Git - moodle.git/commitdiff
questionlib: clarify a comment.
authortjhunt <tjhunt>
Fri, 12 Dec 2008 02:50:36 +0000 (02:50 +0000)
committertjhunt <tjhunt>
Fri, 12 Dec 2008 02:50:36 +0000 (02:50 +0000)
lib/questionlib.php

index 9dfb6200caa6291a8019c0112f2b98c22d2b7850..693f61b5922686d26504ebb96d3c06b54f6cf2a4 100644 (file)
@@ -955,11 +955,9 @@ function question_load_states(&$questions, &$states, $cmoptions, $attempt, $last
                 $states[$qid]->last_graded = clone($states[$qid]);
             }
         } else {
-            // If the new attempt is to be based on a previous attempt get it and clean things
-            // Having lastattemptid filled implies that (should we double check?):
-            //    $attempt->attempt > 1 and $cmoptions->attemptonlast and !$attempt->preview
             if ($lastattemptid) {
-                // find the responses from the previous attempt and save them to the new session
+                // If the new attempt is to be based on this previous attempt.
+                // Find the responses from the previous attempt and save them to the new session
 
                 // Load the last graded state for the question
                 $statefields = 'n.questionid as question, s.*, n.sumpenalty';