Some votes entries are not associated with an anwser.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 14 Aug 2010 08:44:29 +0000 (10:44 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 14 Aug 2010 08:44:29 +0000 (10:44 +0200)
commitee22a54bf773690602e572529fa26c30917ba5c2
tree9a37b759082d2e9fc0d1103e44e6dc13ed0867ea
parent318665ddc0a020035c5ee122724fb29dcc29359b
Some votes entries are not associated with an anwser.

Because of the way votes are written in the database, an entry of
survey_votes can be associated with 0 survey_answers entries. Using
a LEFT JOIN in this case is buggy because it generates NULL entries that
are not supported by the processing code.

Closes #1214

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/survey/survey.inc.php