Skip to content

Commit

Permalink
Committed fix for bug 4829
Browse files Browse the repository at this point in the history
  • Loading branch information
gustav_delius committed Feb 28, 2006
1 parent 5c25b6a commit c902637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion question/questiontypes/calculated/questiontype.php
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ function quiz_qtype_calculated_find_formula_errors($formula) {
switch ($regs[2]) {
// Simple parenthesis
case '':
if ($regs[4] || empty($regs[3])) {
if ($regs[4] || strlen($regs[3])==0) {
return get_string('illegalformulasyntax', 'quiz', $regs[0]);
}
break;
Expand Down

0 comments on commit c902637

Please sign in to comment.