Skip to content

Commit

Permalink
MDL-29730 Lesson mod: fixed check_answer() for shortanswser with regu…
Browse files Browse the repository at this point in the history
…lar expression option enable
  • Loading branch information
Rossiani Wijaya committed Nov 30, 2011
1 parent 779085b commit f3052cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/lesson/pagetypes/shortanswer.php
Expand Up @@ -85,8 +85,8 @@ public function check_answer() {

if ($useregexp) { //we are using 'normal analysis', which ignores case
$ignorecase = '';
if (substr($expectedanswer,0,-2) == '/i') {
$expectedanswer = substr($expectedanswer,0,-2);
if (substr($expectedanswer, -2) == '/i') {
$expectedanswer = substr($expectedanswer, 0, -2);
$ignorecase = 'i';
}
} else {
Expand Down

0 comments on commit f3052cc

Please sign in to comment.