fixed typo preventing score update
authorPetr Skoda <skodak@moodle.org>
Sat, 18 Sep 2010 13:16:12 +0000 (13:16 +0000)
committerPetr Skoda <skodak@moodle.org>
Sat, 18 Sep 2010 13:16:12 +0000 (13:16 +0000)
mod/lesson/pagetypes/endofbranch.php

index f939506..5760350 100644 (file)
@@ -126,7 +126,7 @@ class lesson_page_type_endofbranch extends lesson_page {
         if (isset($properties->jumpto[0])) {
             $answer->jumpto = $properties->jumpto[0];
         }
-        if (isset($form->score[0])) {
+        if (isset($properties->score[0])) {
             $answer->score = $properties->score[0];
         }
         if (!empty($answer->id)) {