Skip to content

Commit

Permalink
MDL-18202 - fix incorrect substitutions of '_'.
Browse files Browse the repository at this point in the history
  • Loading branch information
piersharding committed Feb 9, 2010
1 parent 2e86601 commit 9a44a14
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mod/scorm/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,12 @@ function scorm_reconstitute_array_element($sversion, $userdata, $element_name, $
// check the sub element type
if (count($matches) > 0 && $current_subelement != $matches[1]) {
if ($count_sub > 0) {
echo ' '.$element_name.'_'.$current.'.'.$current_subelement.'._count = '.$count_sub.";\n";
if ($sversion == 'scorm_13') {
echo ' '.$element_name.'.'.$current.'.'.$current_subelement.'._count = '.$count_sub.";\n";
}
else {
echo ' '.$element_name.'_'.$current.'.'.$current_subelement.'._count = '.$count_sub.";\n";
}
}
$current_subelement = $matches[1];
$current_sub = '';
Expand Down

0 comments on commit 9a44a14

Please sign in to comment.