Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.0, 2.1.2
-
Component/s: Lesson
-
Labels:None
-
Testing Instructions:
-
Affected Branches:MOODLE_20_STABLE, MOODLE_21_STABLE
-
Fixed Branches:MOODLE_20_STABLE, MOODLE_21_STABLE
-
Pull from Repository:
-
Pull Master Branch:
-
Pull Master Diff URL:
Description
Error in mod/lesson/pagetypes/shortanswer.php line 88
if (substr($expectedanswer,0,-2) == '/i') {
|
should be
if ( substr($expectedanswer,strlen($expectedanswer) - 2, 2) == '/i') {
|