Permalink
Browse files

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

  • Loading branch information...
pichetp
pichetp committed Sep 20, 2008
1 parent a7b41a3 commit df5fd088ce8c4d88145d0ed71cf3e05cc1af8dea
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 df5fd08

Please sign in to comment.