Permalink
Browse files

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

…dle into MOODLE_21_STABLE
  • Loading branch information...
2 parents dfe26d0 + 66653a5 commit 230235e3e0d17f761fcc52ba4c52dd9acc006786 @danpoltawski danpoltawski committed May 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/formslib.php
View
@@ -979,8 +979,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 230235e

Please sign in to comment.