MDL-17125

Fix as suggested by Jonathan Kemp.

Merged from STABLE_19
This commit is contained in:
thepurpleblob
2008-11-26 15:15:58 +00:00
parent e33025db6a
commit 79ae8789bb
+1 -1
View File
@@ -122,7 +122,7 @@
$expectedanswer = str_replace('#####', '.*', $expectedanswer);
}
// see if user typed in any of the correct answers
if (lesson_iscorrect($pageid, $answer->jumpto) or ($lesson->custom && $answer->score > 0) ) {
if (lesson_iscorrect($pageid, $answer->jumpto) and ($lesson->custom && $answer->score > 0) ) {
if (!$useregexp) { // we are using 'normal analysis', which ignores case
if (preg_match('/^'.$expectedanswer.'$/i',$useranswer)) {
$ismatch = true;