]> git.mjollnir.org Git - moodle.git/commitdiff
Correction to Short answers, now checks the answers in order (first to
authorrkingdon <rkingdon>
Fri, 10 Sep 2004 20:58:50 +0000 (20:58 +0000)
committerrkingdon <rkingdon>
Fri, 10 Sep 2004 20:58:50 +0000 (20:58 +0000)
last) and stops checking if a match is found.

mod/lesson/lesson.php

index 23296cfa47e17d91fdf257d9f73e31f35fb51250..10d56e428ec85f67b19de2ed0eefd30699c8b26d 100644 (file)
                                 if (trim(strip_tags($answer->response))) {
                                     $response = $answer->response;
                                 }
+                                break;
                             }
                         } else {
                             // case insensitive
                                 if (trim(strip_tags($answer->response))) {
                                     $response = $answer->response;
                                 }
+                                break;
                             }
                         }
                     } else {