Permalink
Browse files

MDL-15358 negative data between () bad } closing...

  • Loading branch information...
1 parent 232866f commit f01f1128731b412e7d153a616683de9a85534b42 pichetp committed Sep 20, 2008
Showing with 2 additions and 1 deletion.
  1. +2 −1 question/type/datasetdependent/abstractqtype.php
@@ -82,7 +82,8 @@ function substitute_variables($str, $dataset) {
if($value < 0 ){
$str = str_replace('{'.$name.'}', '('.$value.')', $str);
} else {
- $str = str_replace('{'.$name.'}', $value, $str);
+ $str = str_replace('{'.$name.'}', $value, $str);
+ }
}
return $str;
}

0 comments on commit f01f112

Please sign in to comment.