Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'MDL-29730_m21' of git://github.com/rwijaya/moodle into …

…MOODLE_21_STABLE
  • Loading branch information...
commit 71f5d75a463e4bbbbd4b4627737172df7ee3e4c8 2 parents fd2aab6 + c73da05
@samhemelryk samhemelryk authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/lesson/pagetypes/shortanswer.php
View
4 mod/lesson/pagetypes/shortanswer.php
@@ -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 {
Please sign in to comment.
Something went wrong with that request. Please try again.