Skip to content
Browse files

Merge branch 'wip-mdl-31498-m22' of git://github.com/rajeshtaneja/moo…

…dle into MOODLE_22_STABLE
  • Loading branch information...
2 parents ad9fee8 + 3416857 commit b37bb96b0f2cf8b18b68a2e77d056f70968f456d @danpoltawski danpoltawski committed May 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/formslib.php
View
4 lib/formslib.php
@@ -997,8 +997,8 @@ function repeat_elements($elementobjs, $repeats, $options, $repeathiddenname,
foreach ($options as $elementname => $elementoptions){
$pos=strpos($elementname, '[');
if ($pos!==FALSE){
- $realelementname = substr($elementname, 0, $pos+1)."[$i]";
- $realelementname .= substr($elementname, $pos+1);
+ $realelementname = substr($elementname, 0, $pos)."[$i]";
+ $realelementname .= substr($elementname, $pos);
}else {
$realelementname = $elementname."[$i]";
}

0 comments on commit b37bb96

Please sign in to comment.
Something went wrong with that request. Please try again.