Skip to content
Browse files

so what happens when an answer is zero, duh

  • Loading branch information...
1 parent 0071fe8 commit 06777793058c84598bbc94638de9a45773aeaca6 @schelcj committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 create.pl
View
2 create.pl
@@ -354,7 +354,7 @@ sub add_answers {
op => 'save',
order => $order,
qq{order.$order} => $order,
- response => ($answer_text) ? format_latex_for_mathjax($answer_text) : $EMPTY,
+ response => ($answer_text ne $EMPTY) ? format_latex_for_mathjax($answer_text) : $EMPTY,
section => qq{answers.c$roman},
correct => ($answer eq $correct_answer) ? 'TRUE' : 'FALSE',
feedback => $EMPTY,

0 comments on commit 0677779

Please sign in to comment.
Something went wrong with that request. Please try again.