Skip to content

Commit

Permalink
MDL-15358 negative data between () bad } closing...
Browse files Browse the repository at this point in the history
  • Loading branch information
pichetp committed Sep 20, 2008
1 parent 232866f commit f01f112
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion question/type/datasetdependent/abstractqtype.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit f01f112

Please sign in to comment.